summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
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
2002-12-18Remove pointless 'if 0' code.Dale Rahn
2002-12-18Prepare for an upcoming ELF executable change. This will allow ld.so toDale Rahn
protect the GOT and PLT sections of the executable from being overwritten. This behavior is enabled by changes in the executable/shared object layout, and does not occur without the ld changes.
2002-12-13Compare to ELFMAG byte by byte rather than using full fledged function.Dale Rahn
Also avoids a gas problem for the moment.
2002-12-09Build ld.so as a normal shared object, not with special linkage.Dale Rahn
mprotect the necessary bit to make this work right. ok deraadt@
2002-12-02KNF; openbsd@davidkrause.comTheo de Raadt
2002-12-02typo; ok miod@Christian Weisgerber
2002-12-02Import propolice (http://www.trl.ibm.com/projects/security/ssp), a stackMiod Vallat
attack protection scheme, into gcc. This protection is enabled by default. It can be turned off by using the -fno-stack-protector flag. Code by Hiroaki Etoh (etoh at jp dot ibm dot com); work on openbsd-specific integration by fgsch@, deraadt@ and myself; tests by fgsch@, naddy@ and myself; beer drinking by myself. Please note that system upgrades with this new code will require a new libc and ld.so to be build and installed before the propolice-enabled compiler can be installed.
2002-11-23After fixing these comments, I add another incorrect one.Dale Rahn
2002-11-23Implement [u]mul/[u]div/[u]rem with faster version if availableDale Rahn
on machine. Improves speed for dynamic userland processes when active. Idea from Theo. ok deraadt@
2002-11-23clean up comments.Dale Rahn
2002-11-23Put in a required item. Should not have been deleted to start with.Dale Rahn