summaryrefslogtreecommitdiff
path: root/libexec/ld.so/library.c
AgeCommit message (Collapse)Author
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-07-18Fix print if minor of library used is is less than requested. ok tdeval@Dale Rahn
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-22Dynamic linking random order fixes. This enables random library ordering.Dale Rahn
Tested by naddy@ and others.
2003-06-09pefo 3/4 licence cleanupsTheo de Raadt
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-02-02knf & ansi; drahn okTheo de Raadt
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.
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-11-17Terminate printed strings with newlines.Dale Rahn
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-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-24cope with _dl_mmap() returning void *Theo 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-06-05Get rid of an unnecessary typedef (for future cleanup).Artur Grabowski
2002-05-28more KNFTheo de Raadt
2002-05-24Change _dl_strcpy() to _dl_strlcpy(), implementation taken from libc.Dale Rahn
2002-05-24more KNFTheo de Raadt
2002-05-24various KNFTheo de Raadt
2001-09-22Do not check for ':' twice, otherwise the rpath loses the first characterDale Rahn
after the : in the list of paths.
2001-08-21Fix up comment to indicate order that libraries in which theDale Rahn
libraries are actually searched.
2001-08-06Change the priority of LD_LIBRARY_PATH, -rpath, and ldconfig pathDale Rahn
in ELF ld.so to match the behavior in a.out ld.so. The given order is the new order, previously ldconfig had highest priority, which made it impossible to override.
2001-05-31random indentation fixes (needs much more work).Artur Grabowski
2001-05-11MAP_COPY -> MAP_PRIVATEArtur Grabowski
2001-04-02Cleanup for 64bit support.Dale Rahn
Pieces by art, niklas and me. Only tested on powerpc.
2001-03-30Add infrastructure to allow mapping of text sections which are normallyDale Rahn
RO, RW while ld.so is working. And then the information to set the sections back to RO (or appropriate mode). PowerPC now supports the typical NON-PIC relocations in ld.so. I do not know how well this will work with large shared libraries. I seem to recall a possible problem with large data where data is located in a different shared library.
2001-02-16Now that powerpc is using UVM, this shared library hack is no longer necessary.Dale Rahn
2000-10-06Work around a shared library/pmap bug on the powerpc arch. SomehowDale S. Rahn
it seems that the instruction cache will not get properly initialized or a problem exists with mmaping code and being able to execute it. This workaround is excessive in that it flushes the cache for the entire mmaped library. This slows down program startup, but seems to eliminate the problem.
2000-06-13Initial import of ELF ld.so. This was written indepently of the gnu rtldDale S. Rahn
code and is fully BSD copyrighted. This initial import contains a mostly working mips and partially working powerpc version. No support for ld.so.hints or system run path exists.