summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2001-08-09It seems bogus to me, but if code call dlerror() when an error hasDale Rahn
not occurred, there exists code that expects dlerror to return NULL. Change the code to match the expected behavior.
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-08-05Do not have dl_find_symbol complain about symbols not found, code immediatelyDale Rahn
following the call will catch and report any errors.
2001-07-22Use shlib_version, like the rest of the tree.Marc Espie
2001-07-20do not include or define things which are common for this subdir's parentMichael Shalayeff
2001-07-11typo in commentPeter Valchev
2001-07-11remove mips leftovers; ok bradPeter Valchev
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-06-26Lazy binding for shared libraries.Artur Grabowski
2001-06-13print the nameTheo de Raadt
2001-06-13Add support for lazy binding.Artur Grabowski
For now we only do it for the main executable, some code cleanup is necessary to support it for libraries. This fixes the problem I had in cc1plus and I'm able to finish a make build with shared libraries enabled.
2001-06-13Lazy binding entry point. From NetBSD with some help from FreeBSD.Artur Grabowski
2001-06-13Don't do plt relocations here, move that to md code that might chooseArtur Grabowski
to do lazy binding.
2001-06-08Cleanup.Artur Grabowski
exit when the bootstrap relocation fails.
2001-06-08No more need to pull in strlen from libc.Artur Grabowski
2001-06-08Be consistent. If we have inveted our of strlen, use it everywhere.Artur Grabowski
2001-06-08styleArtur Grabowski
2001-06-08KNFTheo de Raadt
2001-06-07It started with trying to write code to avoid running static binaries,Artur Grabowski
it ended with a complete rewrite. XXX - Doesn't handle '-x' yet, but the old didn't do that either (and didn't even match the man page).
2001-06-06more cleaningArtur Grabowski
2001-06-06cleaningArtur Grabowski
2001-06-06Replace all 'if (_dl_debug) _dl_printf(...)' with a macro.Artur Grabowski
2001-06-06No need to extern _dl_debug here.Artur Grabowski
2001-06-06more cleanupArtur Grabowski
2001-06-06Cleanup.Artur Grabowski
- remove printfs that are only useful for the person who put them there. - Style. - dead code. Needs much more work.
2001-06-05gcc generates a lot of unaligned RELATIVE relocations for c++ exception ↵Artur Grabowski
handlers. Workaround that.
2001-06-01 - Allocate space for the finishing NUL in the name of ld.so.Artur Grabowski
- some comments.
2001-05-31Apparently GLOB_DAT needs r_addend.Artur Grabowski
"Hello, world!\n" now works with libc.so
2001-05-31Some cleanups.Artur Grabowski
2001-05-31unsigned long, not u_int32_tArtur Grabowski
2001-05-31If we can't find atexit (because we linked against libc.a),Artur Grabowski
print a message instead of dereferencing a NULL pointer.
2001-05-31alpha needs JMPREL relocations.Artur Grabowski
various cleanups.
2001-05-31Remove write protection from some memory segments whenArtur Grabowski
doing rel and rela relocations. XXX - we have to find out when and why we actually need it.
2001-05-31random indentation fixes (needs much more work).Artur Grabowski
2001-05-31Correctly implement most linking for alpha.Artur Grabowski
Remove a lot of code copied from powerpc.
2001-05-31When opening the hints file, check for error return < 0, not -1.Artur Grabowski
_dl_open is not necessarily like the regular open(2). XXX - maybe we should check with _dl_check_error?
2001-05-29Check for error on open.Artur Grabowski
ENOENT happens to be the same as stderr. :)
2001-05-28Commonize csu code for elf systems, powerpc now no longer has it's ownDale Rahn
versions of these files. Fixed a bug in ld.so in this, instead of scheduling the fini of each of the shared libraries with atexit. schedule a function of ld.so itself and it will walk all of the open libraries when the program exits. otherwise a shared library could be dl_open()ed and then dl_close()d and then it would not be mapped for the atexit processing. TODO: What if atexit is not found (process did not link against libc?) Do shared libraries that are dl_closed have their global destructors run?
2001-05-23Do not enable debugging, such as PRINTF_DEBUG for ld.so, it becomesDale Rahn
too verbose for normal usage.
2001-05-16proper typing of two variablesTheo de Raadt
2001-05-15Niklas, there is no excuse for breaking this codeTheo de Raadt
2001-05-14Commit initial alpha bits, to facilitate in-tree dev.Niklas Hallqvist
This code is not yet working.
2001-05-12MAP_COPY -> MAP_PRIVATEArtur Grabowski
2001-05-11-1 -> MAP_FAILED.Artur Grabowski
2001-05-11MAP_COPY -> MAP_PRIVATEArtur Grabowski
2001-05-11-1 -> MAP_FAILEDArtur Grabowski
2001-05-11mmap returns MAP_FAILED when it fails, not -1Artur Grabowski
2001-05-11MAP_COPY -> MAP_PRIVATEArtur Grabowski
2001-04-11Correct .Nm usage.Aaron Campbell
2001-04-02Cleanup for 64bit support.Dale Rahn
Pieces by art, niklas and me. Only tested on powerpc.