summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2004-02-27change amd64's MACHINE_ARCH from x86_64 to amd64. There are many manyTheo de Raadt
reasons for this, quite a few of them technical, and not all of them in response to Intel's broken ia32e crud. The gcc toolchain stays at x86_64 for now.
2004-02-25Fix this assumed sizeof(long) == 4 error. Would very occasionally causeDale Rahn
the code to attempt to zero 4 bytes of the next page.
2004-02-23prettyTheo de Raadt
2004-02-23Set the user variable environ early in ld.so so that library constructors canDale Rahn
properly see the environment. Fixes problem with MALLOC_OPTIONS on dynamic executables. ok deraadt@
2004-02-10Make this work. will figure out what this should be later.Dale Rahn
2004-02-10Fix/enable lazy binding on amd64 ld.soDale Rahn
2004-02-10Disable lazy binding for now.Dale Rahn
2004-02-10sync with reloc.h change.Dale Rahn
2004-02-10AMD64 dynamic linker. initial work by mickey finished up by myself.Dale Rahn
lazy binding not working yet. problem exists with gcc and -fpic jump tables. ok mickey@
2004-02-10Check for RTLD_TEXT_PLT define instead of an architecture specific check.Dale Rahn
2004-02-09Enable lazy binding on arm:Dale Rahn
_dl_bind_start inspired by netbsd. changed a define to LD_ALLOW_WRITABLE_TEXT, should this be allowed? remove plt protect code, arm has a text PLT. relocate the got entries associated with the plt. perform got protect/unprotect for lazy binding updates.
2004-02-09Use macros to reduce the amount of hand written asm. inspired by future amd64Dale Rahn
code. no functional change.
2004-02-09Disable lazy binding until that feature is fixed.Dale Rahn
2004-02-07Dynamic linker support for arm. non-lazy binding works.Dale Rahn
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