summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2004-01-12GCC3 compatible asm code. tested on gcc2 myself. ok brad@Dale Rahn
2004-01-10the sparcv9 ABI requires registers %g2, %g3 to be first announced beforePeter Valchev
it can use them, and gcc3 catches this ok henric
2003-12-03Move the asm definition of _dl__syscall from a header file into a .c fileDale Rahn
so that 12 copies of it are not generated.
2003-11-21oops, it wasn't that diff that tedu@ ok'd - revert for nowDamien Miller
2003-11-21add output file and path stripping options useful for pre-generatingDamien Miller
ld.so.hints for dynamic ramdisks. idea from markus@ manpage nits jmc@ ok tedu@
2003-11-20remove -Werror from userland builds, to give us a chance toAnil Madhavapeddy
use more verbose warning options if desired. ok millert@, henning@, david@
2003-11-11Better fix to the library name parsing. now correctly handlesDale Rahn
libpython2.2.so.0.0 vs libpython2.1.so.0.0. Clean up a potential memory leak if the filename is not a valid library. ok brad@
2003-10-26Work around a problem with shared libraries named as libX-A.B.so.X.Y.Dale Rahn
Without this patch, the standard major:minor version matching failed. ok brad@
2003-10-20document shlib_dirs; from Han Boetes (different diff used, though);Jason McIntyre
ok drahn@
2003-10-17double `the the';Jason McIntyre
2003-10-04breaks on sparcTheo de Raadt
2003-10-03Initialize environ before calling constructors or atexit.Dale Rahn
Tested by tedu, no real ok.
2003-10-01Add break statements in switch missing from revision 1.32.Todd C. Miller
2003-09-26- smaller list widthJason McIntyre
- <> -> .Aq - macro cleanup - also kills a (new) groff warning
2003-09-25dlerror(3) should clear _dl_errno; based on a patch from Bjorn Sandell.Todd C. Miller
Closes PR 3441; drahn@ OK
2003-09-05Put in workaround for alpha so that non-lazy binding seems to work,Dale Rahn
however it is using some of the lazy binding values. With this patch LD_BIND_NOW=yes make does not core. ok deraadt@
2003-09-04- document LD_BIND_NOWJason McIntyre
- new sentence, new line - comment out comments patch from (and ok) drahn@
2003-09-04Fix W^X mistake. If the dynamic linker is workin in non-lazy mode, itDale Rahn
should still mprotect the GOT and PLT as appropriate. ok deraadt@ miod@
2003-09-04Symbol cache for GOT lookup. When a symbol is found it is saved in a cacheDale Rahn
for future lookups in the same GOT relocation table. Uses static buffer for small symbol tables, mmap for larger ones. ok deraadt@
2003-09-02Fix PR 3371, symbol lookup in dlopen()ed objects is not correct. CorrectDale Rahn
behavior for RTLD_GLOBAL/RTLD_LOCAL is now supported. ok espie@
2003-08-19Fix PowerPC PLT generation. After 2^12 entries (2^14 offset), only everyDale Rahn
other slot in the PLT is used, this is because it takes more than one instruction to generate a constant > 2^14. Normal PLT entry < 2^12 li r11, <n> # where n is PLT index*4 (offset used for plttable). b .pltresolve | .pltcall | target PLT entry after 2^12 lis r11, <n>@ha addi r11, r11, <n>@l # where n is PLT index*4 (offset used for plttable). b .pltresolve | .pltcall | target nop # unused This is all specified by the PowerPC SVID. The PLT table generation code was never tested for entries > 2^12 before and was broken. This fixes the indexing, the constant checking 12 vs 14, ... This code has been tested with up to 128000+ functions.
2003-08-12use _ENTRY consistently, remove some #if 0 code, and clean up some comments; ↵Jason Wright
ok drahn
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.