summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2003-08-04document LD_NORANDOM; input and ok from several ppl.Federico G. Schwindt
2003-07-28The fifth argument to _dl_find_symbol is a 'int size', not a SYM_ define.Dale Rahn
Fix several calls which had the incorrect but working define in that position It happened that SYM_NOTPLT was 0, which was the desired size value.
2003-07-18Fix print if minor of library used is is less than requested. ok tdeval@Dale Rahn
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-07-09changes to ld.so to be compatible with newer binutils, requiresDale Rahn
slight changes in the startup code on most archs. ok art@ brad@
2003-07-09- simplify some macrosJason McIntyre
- fix a list ok drahn@
2003-07-06various proto, ansi, and knf repair. tested on all architectures thatTheo de Raadt
use it. (build may require make cleandir because of .depend balony)
2003-07-02Correct library search algorithm, wrt versioned objectsNiklas Hallqvist
2003-06-27put it in section 1Theo de Raadt
2003-06-26Manpage for ELF ld.so, derived from a.out version, not yet completeDale Rahn
also points out missing features in the ELF ld.so.
2003-06-26simple protosTheo de Raadt
2003-06-22Dynamic linking random order fixes. This enables random library ordering.Dale Rahn
Tested by naddy@ and others.
2003-06-11no more registerTheo de Raadt
2003-06-09pefo 3/4 licence cleanupsTheo de Raadt
2003-06-03Disable random library ordering, this seems to be exposing bugs in other code.Dale Rahn
2003-06-03three four gone.Artur Grabowski
2003-06-03kill clause 3 and 4 from several of my copyrights, cleanup.Dale Rahn
2003-06-03license cleaning.Artur Grabowski
2003-06-02nuke clause 3 & 4Jason Wright
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02- section reorderJason McIntyre
- put whitespace before punctuation in macro
2003-05-30Move env setup to its own function, works around compiler problem on sparcDale Rahn
LD_NORANDOM is now disabled on issetugid().
2003-05-30knfTheo de Raadt
2003-05-30Unbreak tree for sparc, zapping ld_norandom strangely has a bad affect,Dale Rahn
killing ld.so.
2003-05-30Fix botch in tag array indexing. deal with 0 - DT_NUM,Dale Rahn
DT_LOPROC - DT_LOPROC+DT_PROCNUM, and no other values.
2003-05-30zap LD_NORANDOM on issetugid() binaries.Dale Rahn
2003-05-30When loading a shared object or libraries dependant object, load themDale Rahn
in random order. This will reduce the possiblity of a buffer overflow being able to predict the addresss of useful code. Can be disabled with the LD_NORANDOM environment variable for debugging purposes. ok deraadt.
2003-05-08Previously, ld.so would use a single page for mapping the hints fileTodd C. Miller
and then, if that was not big enough, map the rest of it contiguously. However, there is no guarantee that the address space after the first mmap has not already been used by something else. Instead, just fstat the file and map up to st_size. Also reorganized the code a tad and added some sanity checks for st_size. Problem tracked down by dhartmei@ and mickey@; drahn@ OK.
2003-04-28thread safe dlxxx func (for elf) part 2. This requires the latestMarco S Hyman
ldfcn.h in /usr/include. "looks nice" tedu@
2003-04-28Change mquery() function call signature to be the same a mmap(). ItDale Rahn
needs the prot/flags info and passing the addresses via arg/return allows it to be traced via ktrace better than an in/out paramter. This adds a new mquery syscall and renames the old one to omquery. New kernel _MUST_ be built, booted, and 'make includes' before building ld.so with this change.
2003-04-25backout mquery change, something broke when not combined with a different diff.Dale Rahn
2003-04-25change mquery() function call signature to be the same a mmap(). ItDale Rahn
needs the prot/flags info and passing the addresses via arg/return allows it to be traced via ktrace better than an in/out paramter. This adds a new mquery syscall and renames the old one to omquery. New kernel _MUST_ be built and installed before building ld.so with this change. ok millert@ tedu@
2003-04-22sync up ELF and a.out versions of ldconfig(8)David Krause
ok drahn@ mdoc ok jmc@
2003-04-21Fix the load_size which is used by ldd to print end address.Dale Rahn
2003-04-18Adjusting the start is wrong. The value returned by mquery() should be usedDale Rahn
here. Fixes a bug with emacs21. tested by marc@ and others.
2003-04-17mquery support, currently for i386 only.Dale Rahn
2003-03-10typoDavid Krause
ok drahn@
2003-03-07Fix cut and paste on wrong line bugs, now like other versions. ok miod@Dale Rahn
2003-03-06.Xr typos;Jason McIntyre
ok deraadt@
2003-02-26Initialized the ABI stated 'cleanup' parameter to _start. This parameterDale Rahn
is not used, but is now initialized to a valid value.
2003-02-15After relocation is completed, remove write protection from GOT/PLT in ld.so.Dale Rahn
2003-02-15Paranoia about mprotect, mprotect page aligned regions for got and plt.Dale Rahn
2003-02-15Do not call mprotect to enable writing for sections which normally areDale Rahn
writable. Idea taken from alpha version. Saves many mprotect syscalls.
2003-02-02knf & ansi; drahn okTheo de Raadt
2003-01-31The version of open in ld.so, _dl_open(), will return -errno instead of -1.Dale Rahn
This is to avoid corrupting 'errno'. Handle this case in _dl_opendir(). This is also the case for _dl_fcntl(). ok deraadt@
2003-01-30Only flush the got address, if there is one. DOH.Dale Rahn
2003-01-30Change the constructor execution order to initialize dependant librariesDale Rahn
first. This mirrors the commit espie put in a.out ld.so recently.
2003-01-24Flush the blrl instruction from the instruction cache if the GOT tag isDale Rahn
present. Fixes illegal instruction problems seen the last few days tested by myself and matthieu@
2003-01-17Change the GOT initialization so that it is done in a function whichDale Rahn
initialized just the correct addresses instead of assuming that the GOT extends from _GLOBAL_OFFSET_TABLE_ to _DYNAMIC. Mostly from NetBSD. ok nate@
2003-01-16whitespace removal.Dale Rahn