summaryrefslogtreecommitdiff
path: root/libexec/ld.so/i386
AgeCommit message (Collapse)Author
2006-05-03prebind - how to prelink a binary without throwing security out the windowDale Rahn
Prelink fixes the address of libraries making 'return to libc' attacks trival, prebind uses a different method to achieve most of the same gains, however without adding any security conerns. Still under development, now in-tree.
2006-05-03Rewrite the ld.so syscall stubs as macros. no binary change.Dale Rahn
2005-09-22Use std missing symbol print instead of MD custom, do not warn on weakDale Rahn
undefined symbols, or count them as failures. inspired kurt@
2005-09-21Simplify the internal symbol finding API, with some cleanup, prep forDale Rahn
next step. ok kurt@
2005-09-16Rework symbol lookup to more closely match sun's documentation, nowDale Rahn
treats dlopens as load groups. ok kurt@
2004-05-25provide one version of _dl_bcopy instead of copy in every arch; drahn@ okMichael Shalayeff
2004-05-25return object* the symbol is in for _dl_find_symbol*; drahn@ okMichael Shalayeff
2004-05-25spacingTheo de Raadt
2004-05-24Change define used to deal with PLT protection, use postive logic not negative.Dale Rahn
ok mickey@
2004-02-10Check for RTLD_TEXT_PLT define instead of an architecture specific check.Dale Rahn
2003-09-04Fix W^X mistake. If the dynamic linker is workin in non-lazy mode, itDale Rahn
should still mprotect the GOT and PLT as appropriate. ok deraadt@ miod@
2003-09-04Symbol cache for GOT lookup. When a symbol is found it is saved in a cacheDale Rahn
for future lookups in the same GOT relocation table. Uses static buffer for small symbol tables, mmap for larger ones. ok deraadt@
2003-09-02Fix PR 3371, symbol lookup in dlopen()ed objects is not correct. CorrectDale Rahn
behavior for RTLD_GLOBAL/RTLD_LOCAL is now supported. ok espie@
2003-07-28The 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-09changes to ld.so to be compatible with newer binutils, requiresDale Rahn
slight changes in the startup code on most archs. ok art@ brad@
2003-07-06various proto, ansi, and knf repair. tested on all architectures thatTheo de Raadt
use it. (build may require make cleandir because of .depend balony)
2003-06-09pefo 3/4 licence cleanupsTheo de Raadt
2003-06-03three four gone.Artur Grabowski
2003-06-03kill clause 3 and 4 from several of my copyrights, cleanup.Dale Rahn
2003-05-30When loading a shared object or libraries dependant object, load themDale 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-04-28Change mquery() function call signature to be the same a mmap(). ItDale Rahn
needs the prot/flags info and passing the addresses via arg/return allows it to be traced via ktrace better than an in/out paramter. This adds a new mquery syscall and renames the old one to omquery. New kernel _MUST_ be built, booted, and 'make includes' before building ld.so with this change.
2003-04-25backout mquery change, something broke when not combined with a different diff.Dale Rahn
2003-04-25change mquery() function call signature to be the same a mmap(). ItDale Rahn
needs the prot/flags info and passing the addresses via arg/return allows it to be traced via ktrace better than an in/out paramter. This adds a new mquery syscall and renames the old one to omquery. New kernel _MUST_ be built and installed before building ld.so with this change. ok millert@ tedu@
2003-04-17mquery support, currently for i386 only.Dale Rahn
2003-02-15After relocation is completed, remove write protection from GOT/PLT in ld.so.Dale Rahn
2003-02-15Paranoia about mprotect, mprotect page aligned regions for got and plt.Dale Rahn
2003-02-02knf & ansi; drahn okTheo de Raadt
2002-12-18Prepare for an upcoming ELF executable change. This will allow ld.so toDale 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-23Put in a required item. Should not have been deleted to start with.Dale Rahn
2002-11-14Make error messages on symbol lookup failures more useful.Dale Rahn
2002-11-13Check for NULL on pltgot, appearently libraries with no external referencesDale Rahn
will not create a PLT on i386.
2002-10-25Some 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-21Simplify the ld.so asm api, the data is available other ways.Dale Rahn
tested by naddy@ and myself.
2002-09-01Make sure that the symbol return value is always initialized beforeDale Rahn
the address of it is passed to dl_find_symbol(). fixes xpdf lazy binding problem. ok art@
2002-08-23Support for i386 ELF. Not an indication that the change is going to be made,Dale Rahn
just so that these files are maintained in the tree.