summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
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
2002-03-17Clean up building of debug_map. mips and non-mips can moreArtur Grabowski
or less share the same code.
2002-03-17Remove hackery I added to deal with dlopen(NULL), handle it in a reasonablyDale Rahn
sane manner. This and the previous resolve.c change art@ ok
2002-03-17Keep _dl_last_object in sync with reality if last element in list is deleted.Dale Rahn
allocated memory is not necessarily 0ed, make sure next pointer is inited.
2002-03-17Clean up the zapping of bad variables. Instead of implementingArtur Grabowski
_dl_suid_ok, just use the issetugid syscall. ok drahn@.
2002-03-15Add support for binutils 2.11. Work around change in PLT generation new ldDale Rahn
generates. From NetBSD. ok art@
2002-03-07call the r_brk function in dlopen/dloclose on all archs,Artur Grabowski
not just mips.
2002-03-07Add a debug printf for the entry point just before returning to MD code.Artur Grabowski
2002-02-21cleanup of MD/MI ld.so (elf), most changes by art@ cleanup by me.Dale Rahn
tested on alpha sparc64 powerpc.
2002-02-20Fix obvious pasto: when iflush'n flush 24,20,16,... not 20,16,16,...Jason Wright
2002-02-20err/warn strings don't need \n'sJason Wright
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11libdl is no moreArtur Grabowski
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.