Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-07-28 | The fifth argument to _dl_find_symbol is a 'int size', not a SYM_ define. | Dale Rahn | |
Fix several calls which had the incorrect but working define in that position It happened that SYM_NOTPLT was 0, which was the desired size value. | |||
2003-07-09 | changes to ld.so to be compatible with newer binutils, requires | Dale Rahn | |
slight changes in the startup code on most archs. ok art@ brad@ | |||
2003-07-06 | various proto, ansi, and knf repair. tested on all architectures that | Theo de Raadt | |
use it. (build may require make cleandir because of .depend balony) | |||
2003-06-09 | pefo 3/4 licence cleanups | Theo de Raadt | |
2003-06-03 | three four gone. | Artur Grabowski | |
2003-06-02 | nuke clause 3 & 4 | Jason Wright | |
2003-05-30 | When loading a shared object or libraries dependant object, load them | Dale 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-15 | After relocation is completed, remove write protection from GOT/PLT in ld.so. | Dale Rahn | |
2003-02-15 | Paranoia about mprotect, mprotect page aligned regions for got and plt. | Dale Rahn | |
2003-02-02 | knf & ansi; drahn ok | Theo de Raadt | |
2002-12-18 | Prepare for an upcoming ELF executable change. This will allow ld.so to | Dale Rahn | |
protect the GOT and PLT sections of the executable from being overwritten. This behavior is enabled by changes in the executable/shared object layout, and does not occur without the ld changes. | |||
2002-11-23 | clean up comments. | Dale Rahn | |
2002-11-14 | Make error messages on symbol lookup failures more useful. | Dale Rahn | |
2002-10-25 | Some small fixes in MI code for mips backport. A new reloc md function, | Per Fogelstrom | |
RELOC_GOT, was added to handle mips got bootstrap reloc. Also remove workaround used on previous versions of binutils for mips. | |||
2002-10-21 | Simplify the ld.so asm api, the data is available other ways. | Dale Rahn | |
tested by naddy@ and myself. | |||
2002-09-01 | Make sure that the symbol return value is always initialized before | Dale Rahn | |
the address of it is passed to dl_find_symbol(). fixes xpdf lazy binding problem. ok art@ | |||
2002-08-23 | Fix after recent changes. | Artur Grabowski | |
2002-08-23 | Change arguments to _dl_find_symbol() myself, warnnotfound, and inplt into | Dale Rahn | |
a single flags field with bits representing each. Use defines to create the appropriate masks. Add a new argument sym_size to warn about symbols which have the incorrect size. This replaces 'ifdef notyet' code which was in several of the md files with a single version. sym_size == 0 means do not check, and symbols of type FUNC are not checked. | |||
2002-08-21 | Split out MD makefile parts into separate files and do | Artur Grabowski | |
some other cleanup in the Makefile. drahn@ ok. | |||
2002-08-12 | Add support for REL type relocations, all currently supported arch | Dale Rahn | |
use only RELA type relocations, but that could change. ok art@ | |||
2002-08-11 | The parameter dynp was never used, rather than pass in a dummy on most | Dale Rahn | |
archs and a nasty calcuation on others, remove the parameter. | |||
2002-08-11 | Fix for Elfbug, the Xtiherit problem which has been seen on most OpenBSD | Dale Rahn | |
ELF dynamic systems. This was due to an oddity in ELF where the address of fuctions refer to the PLT address in the program, rather than the actual function address. | |||
2002-07-24 | ok i found it | Theo de Raadt | |
2002-07-24 | back out broken stuff until it is fixed | Theo de Raadt | |
2002-07-24 | spacing | Theo de Raadt | |
2002-07-24 | make _dl_mmap() return void * like others | Theo de Raadt | |
2002-07-23 | match _dl_ syscall prototypes w/ the real syscalls prototypes, including ↵ | Michael Shalayeff | |
args and return values; art@ ok | |||
2002-07-12 | Change 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-05 | Cleanup/remove duplicate code that checks STAT_RELOC_DONE. | Artur Grabowski | |
2002-06-05 | Get rid of an unnecessary typedef (for future cleanup). | Artur Grabowski | |
2002-06-03 | Proper masks for 64 bit relocation types. ok art@ | Dale Rahn | |
2002-05-24 | more KNF | Theo de Raadt | |
2002-05-24 | various KNF | Theo de Raadt | |
2002-04-24 | Perform full relocation for Rela bootstrap relocations, compatible | Dale Rahn | |
with newer binutils this way. ok fgs, jason. | |||
2002-03-17 | Clean up the zapping of bad variables. Instead of implementing | Artur Grabowski | |
_dl_suid_ok, just use the issetugid syscall. ok drahn@. | |||
2002-03-15 | Add support for binutils 2.11. Work around change in PLT generation new ld | Dale Rahn | |
generates. From NetBSD. ok art@ | |||
2002-02-21 | cleanup of MD/MI ld.so (elf), most changes by art@ cleanup by me. | Dale Rahn | |
tested on alpha sparc64 powerpc. | |||
2002-02-20 | Fix obvious pasto: when iflush'n flush 24,20,16,... not 20,16,16,... | Jason Wright | |
2002-02-16 | Part 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. | |||
2001-09-27 | Local 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 | Some juggling to simplify the code and some missing code. | Artur Grabowski | |
2001-09-26 | Lazy binding. Parts from NetBSD. | Artur Grabowski | |
2001-09-26 | Implement COPY relocations. | Artur Grabowski | |
2001-09-26 | Code for PLT relocations. From NetBSD. | Artur Grabowski | |
2001-09-25 | Duh! if we go through the hassle of looking up a symbol it might | Artur Grabowski | |
be a good idea to actually use the value of the symbol. | |||
2001-09-25 | Borrow a big chunk of code from the NetBSD ld.elf_so to do all the | Artur Grabowski | |
basic relocations with a table. | |||
2001-09-25 | Do mmap the right way. | Artur Grabowski | |
2001-09-25 | Another attempt at getting this right. This time, play safe. | Artur Grabowski | |
2001-09-24 | Some cleanup. | Artur Grabowski | |
2001-09-24 | Get the bootstrapping right. | Artur Grabowski | |