]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the trampolines for dlopen and related functions from crt0.o
authorjdp <jdp@FreeBSD.org>
Mon, 9 Feb 1998 06:05:25 +0000 (06:05 +0000)
committerjdp <jdp@FreeBSD.org>
Mon, 9 Feb 1998 06:05:25 +0000 (06:05 +0000)
commit4538098d0b3fbe09f64c578b730483a6e77ff40f
tree23d1dd6188892e0850b5b2dcd638bde40de3ac33
parent7764f84ad9e53692980602aef6b4d76b001692ce
Move the trampolines for dlopen and related functions from crt0.o
into libc.  This reduces the size of every dynamically linked
executable by 248 bytes, and it reduces the size of static executables
by a lesser amount.  It also eliminates some global namespace
pollution.

With this change in place, the source for dlfcn.h should probably
be moved to "/usr/src/include".  I'll save that for another day.

Compatibility note:  Programs which use dlopen, if compiled on
systems with this change, will not run on systems with a libc from
prior to this change.  Very few programs use dlopen, so I think
that is OK.
lib/csu/i386/Makefile
lib/csu/i386/crt0.c
lib/libc/gen/Makefile.inc
lib/libc/gen/dladdr.3 [moved from lib/csu/i386/dladdr.3 with 98% similarity]
lib/libc/gen/dlfcn.c [new file with mode: 0644]
lib/libc/gen/dlopen.3 [moved from lib/csu/i386/dlopen.3 with 100% similarity]