freebsd-dev/gnu/usr.bin/ld/rtld
John Polstra 0db65949ae Add support for the LD_BIND_NOW environment variable. If it is set to a
nonempty string, then function calls are relocated at program start-up
rather than lazily.  This variable is standard on Sun and SVR4 systems.

The dlopen() function now supports both lazy and immediate binding, as
determined by its "mode" argument, which can be either 1 (RTLD_LAZY) or
2 (RTLD_NOW).  I will add defines of these symbols to <dlfcn.h> as soon
as I've done a little more checking to make sure they won't cause
collisions or bootstrapping problems that would break "make world".

The "LD_*" environment variables which alter dynamic linker behavior are
now treated as unset if they are set to the empty string.  This agrees
with the standard SVR4 conventions for the dynamic linker.

Add a work-around for programs compiled with certain buggy versions of
crt0.o.  The buggy versions failed to set the "crt_ldso" member of the
interface structure.  This caused certain error messages from the
dynamic linker to begin with "(null)" instead of the pathname of the
dynamic linker.
1997-01-12 00:16:36 +00:00
..
Makefile Update to handle new version ld.so.hints and info in executable for 1996-10-01 01:52:03 +00:00
malloc.c General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
md-prologue.c Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
rtld.1 Add support for the LD_BIND_NOW environment variable. If it is set to a 1997-01-12 00:16:36 +00:00
rtld.c Add support for the LD_BIND_NOW environment variable. If it is set to a 1997-01-12 00:16:36 +00:00
sbrk.c Update to handle new version ld.so.hints and info in executable for 1996-10-01 01:52:03 +00:00