freebsd-dev/libexec
Nate Williams 1e37fc9d59 Changed the terminology for what used to be called the "memorizing"
vector.  Now it is called the "symbol caching" vector.  This was made
possible and unconfusing by other changes that allowed me to localize
everything having to do with the caching vector in the function
reloc_map().

Switched to alloca() for allocating the caching vector, and eliminated
the special mmap-based allocation routines.  Although this was motivated
by performance reasons, it led to significant simplification of the
code, and made it possible to confine the symbol caching code to the
single function reloc_map().

Got rid of the unnecessary and inefficient division loop at the
beginning of rtld().

Reduced the number of calls to getenv("LD_LIBRARY_PATH") to just 1, on
suggestion from <davidg@root.com>.

Added breaks out of the relocation loops when the relocation address is
found to be 0.  A relocation address of 0 is caused by an unused
relocation entry.  Unused relocation entries are caused by linking a
shared object with the "-Bsymbolic" switch.  The runtime linker itself
is linked that way, and the last 40% of its relocation entries are
unused.  Thus, breaking out of the loop on the first such entry is a
performance win when ld.so relocates itself.  As a side benefit, it
permits removing a test from md_relocate_simple() in
../i386/md-static-funcs.c.

Unused relocation entries in other shared objects (linked with
"-Bsymbolic") caused even bigger problems in previous versions of the
runtime linker. The runtime linker interpreted the unused entries as if
they were valid. That caused it to perform repeated relocations of the
first byte of the shared object.  In order to do that, it had to remap
the text segment writable.  Breaking out of the loop on the first unused
relocation entry solves that.

Submitted by:	John Polstra <jdp@polstra.com>
1995-11-02 18:48:15 +00:00
..
atrun Fix ${.CURDIR} misspelling 1995-08-29 13:42:52 +00:00
bootpd Fix SRCS (.c's were .o's) so that `make depend' works. 1995-09-28 17:33:16 +00:00
bootpgw Rearrange bootp 1994-09-30 05:43:13 +00:00
bugfiler Update to new make macros and disable Kerberos because we haven't got it 1994-08-05 21:24:58 +00:00
comsat Extend message format to user@offset[:file] 1994-10-15 17:39:23 +00:00
fingerd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
ftpd Check for expired passwords before allowing access to the system. 1995-08-28 21:30:59 +00:00
getNAME BSD 4.4 Lite Libexec Sources 1994-05-27 12:39:25 +00:00
getty Back this change out. It's just not worth arguing over and any further emails 1995-08-03 05:44:46 +00:00
kpasswdd Add distribution=krb for P-HK 1994-11-20 23:23:28 +00:00
lfs_cleanerd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
mail.local Revert fsync ifdef behaviour and name, now default variant acts like 1995-10-31 09:16:46 +00:00
makekey Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rbootd Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
revnetgroup Import the first cut of my (finally finished) revnetgroup program. This 1995-10-26 16:25:29 +00:00
rexecd Check for expired passwords before allowing access to the system. 1995-08-28 21:30:59 +00:00
rlogind Added a -D option to set the TCP_NODELAY socket option. This improves 1995-10-15 03:40:57 +00:00
rpc.rstatd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rpc.rusersd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rpc.rwalld Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rshd Check for expired passwords before allowing access to the system. 1995-08-28 21:30:59 +00:00
rtld-aout Changed the terminology for what used to be called the "memorizing" 1995-11-02 18:48:15 +00:00
rtld-elf This is a FreeBSD manpage, not a NetBSD manpage. :) 1995-10-05 05:16:52 +00:00
talkd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
telnetd Remove LD_NOSTD_PATH unsetenv, isn't exist anymore 1995-10-24 06:50:45 +00:00
tftpd I think the security check to invalidate ALL write requests was just a little 1995-02-26 23:28:00 +00:00
uucpd Check for expired passwords before allowing access to the system. 1995-08-28 21:30:59 +00:00
xtend Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
Makefile Add revnetgroup. 1995-10-26 16:28:33 +00:00
Makefile.inc BSD 4.4 Lite Libexec Sources 1994-05-27 12:39:25 +00:00