summaryrefslogtreecommitdiff
path: root/libexec/ld.so/loader.c
AgeCommit message (Collapse)Author
2001-06-13Don't do plt relocations here, move that to md code that might chooseArtur Grabowski
to do lazy binding.
2001-06-06Replace all 'if (_dl_debug) _dl_printf(...)' with a macro.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-01 - Allocate space for the finishing NUL in the name of ld.so.Artur Grabowski
- some comments.
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-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-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-04-02Cleanup for 64bit support.Dale Rahn
Pieces by art, niklas and me. Only tested on powerpc.
2001-02-03Previously only powerpc used the DT_INIT field to find the ctors/initDale Rahn
code, now that will be changed to all arch besides mips will default to using that. mips probably would be changed to but it has not been tested.
2001-01-23fix includesTheo de Raadt
2000-10-13Clean up static constructor/destructor discovery and calling. InsteadDale Rahn
of relying on magic variable names, reqire that the library provide the _init/_fini functions so that the linker will find them and create the DT_INIT and DT_FINI sections of the .dynamic section of the shared library. With the shared library providing the DT_INIT function pointer, it is now possible to just check the init field and call it if defined, if not defined no constructors are needed. This cleans up the code in ld.so greatly.
2000-09-17activate ldd, and indent some ld.so messages to make it easier to see what ↵Theo de Raadt
is going on
2000-09-11ldd compatibility (if we had ldd for this ld.so)Dale S. Rahn
respect the LD_TRACE_LOADED_OBJECTS environment variable, print loaded libraries and exit, do not execute program.
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.