summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2001-12-07kill more registers;Mike Pechkin
millert@ ok
2001-11-20bye bye, libdlPeter Valchev
2001-11-13o) fix bogus .Xr usage;Mike Pechkin
o) start new sentence on a new line; o) don't use .Xr instead of .Pa tag; o) minimal -mdoc design fixes; millert@ ok;
2001-11-06Since the header of the file map is Start End,Dale Rahn
print the end address, not the size.
2001-10-24getopt(3) returns -1 when out of args, not EOF.Mike Pechkin
millert@ ok
2001-09-29Change method of determining object type, does better bounds checking,Dale Rahn
and fixes a bug on sparc64 "ELF" for type. ok art@.
2001-09-27Local symbols don't need to have a name. Don't barf on them.Artur Grabowski
They are often generated by gcc c++ exceptions.
2001-09-26'loff' shouldn't be const (at least not on sparc64)Jason Wright
2001-09-26Some juggling to simplify the code and some missing code.Artur Grabowski
2001-09-26Lazy binding. Parts from NetBSD.Artur Grabowski
2001-09-26Implement COPY relocations.Artur Grabowski
2001-09-26Code for PLT relocations. From NetBSD.Artur Grabowski
2001-09-26Adapt to Elf_Word change.Artur Grabowski
XXX - Dyn.u should just go away.
2001-09-25Slight cleanup on ld.so tests, link with rpath built in, so that runningDale Rahn
test does not require LD_LIBRARY_PATH. remove an unnecessary header file from dltest.c
2001-09-25Duh! if we go through the hassle of looking up a symbol it mightArtur Grabowski
be a good idea to actually use the value of the symbol.
2001-09-25Borrow a big chunk of code from the NetBSD ld.elf_so to do all theArtur Grabowski
basic relocations with a table.
2001-09-25Cleaner hash bucket init and some KNF.Artur Grabowski
2001-09-25Zero out dl_data before populating it.Artur Grabowski
Cleaner populating of dl_data.
2001-09-25Do mmap the right way.Artur Grabowski
2001-09-25Another attempt at getting this right. This time, play safe.Artur Grabowski
2001-09-24Some cleanup.Artur Grabowski
2001-09-24Some voodoo for bootstrapping sparc64.Artur Grabowski
2001-09-24Get the bootstrapping right.Artur Grabowski
2001-09-24Proper RELOC_RELA for bootstrap.Artur Grabowski
2001-09-24sparc64 needs slightly different flags.Artur Grabowski
2001-09-24Adapt to _dl_boot_bind change.Artur Grabowski
2001-09-24API change between asm code and _dl_boot_bind(). Simply andDale Rahn
reduce number of parameters. Alpha changes coming shortly.
2001-09-24dl_data is at the start of the stack, not after env. load loff.Artur Grabowski
Now _dl_boot starts correctly.
2001-09-23pass appropriate compilation flags for sparc64. needs to be compiled PIC.Dale Rahn
both C and asm files.
2001-09-23add munmap syscallDale Rahn
change _rtld references to _dl to match C code. change relocation types in archdep.h to be sparc64 relocs. rtld_machine.c copied from alpha, with some modes to compile for sparc64 This is in-tree development.
2001-09-22Upon futher contemplation, the notion of unmaphints is just wrong.Dale Rahn
First the maphints code is not cleaning up after itself, by leaving a file descriptor open and trying to clean up after the dynamic linker is done loading by removing data needed during dlopen() is nonsense. the _dl_unmaphints() function and it's references have been removed. _dl_maphints() now cleans up it's file descriptor before returning. static data used later during dlopen() is left intact.
2001-09-22Do not check for ':' twice, otherwise the rpath loses the first characterDale Rahn
after the : in the list of paths.
2001-09-22The unmaphints routine should not destroy the hint mapping.Dale Rahn
Otherwise shared modules which depend on libraries cannot find them because the list of trusted directories has been lost. However we need to be careful that the unmapping of the hints frees the file descriptor, but will not free it multiple times.
2001-09-21partially done... committing so other folks don't have to repeat some of the ↵Jason Wright
work
2001-09-21Stolen from alpha.Jason Wright
2001-09-21first whack at ldasm.S... this will not work yet (partially based on NetBSD,Jason Wright
partially based on alpha)
2001-09-19occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok p.s. Next commit will fix a typo in the sys/
2001-09-15Some cleanup in loader.c, initialize the symbol pointer with NULL,Dale Rahn
add a missing initialization of the sym pointer. Add some functionality which allows a program to open itself dlopen(NULL), so that it can then look up symbols in the executable itself. Note that the program can only access exported variables, either by exporting all variables with the ld option -E or externally referrenced. Fix bug in dlsym() where it would return failure when looking up symbols. It was testing the offset of the found symbol, not if the symbol was found.
2001-08-21Fix up comment to indicate order that libraries in which theDale Rahn
libraries are actually searched.
2001-08-20Powered by @mantoya.Mike Pechkin
o) fix bogus .Xr usage; millert@ ok.
2001-08-17o) close .Bl;Mike Pechkin
o) NetBSD -> .Bx; o) we should sort options in .DESCRIPTION; some spotted from form@openbsd.ru; millert@ ok.
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