summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2002-08-08There was a possible off-by-one in ld.so when loading shared libraries.Artur Grabowski
In some (rare?) cases, where the bss was too small and fit entirely into the leftovers of the data segment we could map one extra page. This is slightly dangerous on PMAP_PREFER machines where mmaps allocations do not happen linearly in the virtual space and we could end up overwriting mappings that are already in use. This also changes the initial allocation from being a MAP_ANON to a MAP_FILE so that we can pass the fd as a PMAP_PREFER hint.
2002-07-30knf & ansiTheo de Raadt
2002-07-29minor formattingArtur Grabowski
2002-07-29Bunch of cleanups and one last bugfix that seems to make things work.Artur Grabowski
Mark COPY relocations as needing to resolve the destination symbol.
2002-07-27Commit work in progress before I get drunk tonight.Artur Grabowski
Code from sparc64 and NetBSD. Basically we can link the most, lazy linking works (!), but something else is screwed.
2002-07-27I don't see the point of a return at the end of a void function.Artur Grabowski
2002-07-27Make self-relocation work.Artur Grabowski
2002-07-27this is not sparc64.Artur Grabowski
2002-07-27Stop being too creative, steal more code from sparc64.Artur Grabowski
2002-07-27Just a skeleton for sparc. Builds, but pieces are missing and it doesn'tArtur Grabowski
even get to dl_boot_bind correctly.
2002-07-24use real clones of the libc functionsTheo de Raadt
2002-07-24ok i found itTheo de Raadt
2002-07-24back out broken stuff until it is fixedTheo de Raadt
2002-07-24spacingTheo de Raadt
2002-07-24make more _dl_*() func params like real ones in libcTheo de Raadt
2002-07-24cope with _dl_mmap() returning void *Theo de Raadt
2002-07-24make _dl_mmap() return void * like othersTheo de Raadt
2002-07-23match _dl_ syscall prototypes w/ the real syscalls prototypes, including ↵Michael Shalayeff
args and return values; art@ ok
2002-07-12Change ld.so search order/method to match the a.out ld.so.Dale Rahn
run destructors on dlclose() Move more symbols into _dl_ private space, so that the proper (libc) version of the function will be used. Add readdir() functionality to perform the proper library searching. Support DL_PRELOAD Do not relocate symbols if ld.so is being traced (and will exit). Misc lint cleanup. ok art@
2002-07-07typos/grammar/better wordsJan-Uwe Finck
in comments.
2002-06-07move load_offs out of the link_map area.Artur Grabowski
2002-06-05Cleanup/remove duplicate code that checks STAT_RELOC_DONE.Artur Grabowski
2002-06-05Get rid of an unnecessary typedef (for future cleanup).Artur Grabowski
2002-06-03Proper masks for 64 bit relocation types. ok art@Dale Rahn
2002-05-28libdl is not used anymore. Remove these as the support is now in libc.Dale Rahn
2002-05-28KNFTheo de Raadt
2002-05-28issetugid() test earlierTheo de Raadt
2002-05-28unused variable in latest commitTheo de Raadt
2002-05-28Remove LD_LIBRARY_PATH completely from environment, as per ldconfig manpage.Dale Rahn
ok deraadt@
2002-05-28proto _dl_show_objects() in one placeTheo de Raadt
2002-05-28more KNFTheo de Raadt
2002-05-27KNFTheo de Raadt
2002-05-27left over __P removalsTheo de Raadt
2002-05-25use _dl_strncmp() not strncmp(), _dl version is already present and used.Dale Rahn
2002-05-25_dl_strcmp() and _dl_strchr() exist, do not pull these routinesDale Rahn
from libsa source.
2002-05-24Replace strcpy() with strlcpy().Dale Rahn
2002-05-24Change _dl_strcpy() to _dl_strlcpy(), implementation taken from libc.Dale Rahn
2002-05-24not needed; deraadt@ okFederico G. Schwindt
2002-05-24more KNFTheo de Raadt
2002-05-24more KNFTheo de Raadt
2002-05-24various KNFTheo de Raadt
2002-05-24remove another unneeded functionTheo de Raadt
2002-05-24replace some wrapper functions w/ no license w/ some public domain ones.Eric Jackson
deraadt@ ok
2002-05-23This stuff has no license. Delete it. If someone wants it back, get the ↵Theo de Raadt
licenses cleaned up, and put it in regress
2002-05-23remove _dl_sprintf(). nothing uses it. and if it is gone, nothing canTheo de Raadt
2002-05-22a bunch more strcpy -> strlcpy and sprintf -> snprintfTheo de Raadt
2002-04-29Clean up RELOC_RELATIVE reloction type, do correct relocation insteadDale Rahn
of incorrect symbol handling for it. RELOC_RELA() is not a macro, so remove extra () from the code, try to print error and exit if unknown relocation type is encountered.
2002-04-24Perform full relocation for Rela bootstrap relocations, compatibleDale Rahn
with newer binutils this way. ok fgs, jason.
2002-04-09Add the Copyrights from the respective files the code came from. ok deraadt@Dale Rahn
2002-03-31Do not run static constructors when run from ldd. ok theo, art, espie, pefoDale Rahn