freebsd-nq/libexec/rtld-elf
John Polstra a565ca5920 Implement ldconfig functionality for ELF. The hints are stored in
a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints".
These hints consist only of the directory search path.  There is
no hash table as in the a.out hints, because ELF doesn't have to
search for the file with the highest minor version number.  (It
doesn't have minor version numbers at all.)

A single run of ldconfig updates either the a.out hints or the ELF
hints, but not both.  The set of hints to process is selected in
the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout"
or "-elf" command line option.  The rationale is that you probably
want to search different directories for ELF than for a.out.

"ldconfig -r" is faked up to produce output like we are used to,
except that for ELF there are no minor version numbers.  This should
enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports
even for ELF.

I implemented the ELF functionality in a new source file, with an
eye toward eliminating the a.out code entirely at some point in
the future.
1998-09-05 03:31:00 +00:00
..
alpha Add alpha support. 1998-09-04 19:03:57 +00:00
amd64 Add alpha support. 1998-09-04 19:03:57 +00:00
i386 Add alpha support. 1998-09-04 19:03:57 +00:00
debug.c Import the ELF dynamic linker. This is the ElfKit version with 1998-03-07 19:24:35 +00:00
debug.h Import the ELF dynamic linker. This is the ElfKit version with 1998-03-07 19:24:35 +00:00
Makefile Add alpha support. 1998-09-04 19:03:57 +00:00
malloc.c Add alpha support. 1998-09-04 19:03:57 +00:00
map_object.c Add alpha support. 1998-09-04 19:03:57 +00:00
rtld.1 spelling corrections. 1997-09-13 16:01:53 +00:00
rtld.c Implement ldconfig functionality for ELF. The hints are stored in 1998-09-05 03:31:00 +00:00
rtld.h Add alpha support. 1998-09-04 19:03:57 +00:00
xmalloc.c Import the ELF dynamic linker. This is the ElfKit version with 1998-03-07 19:24:35 +00:00