Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-01-17 | Change the GOT initialization so that it is done in a function which | Dale Rahn | |
initialized just the correct addresses instead of assuming that the GOT extends from _GLOBAL_OFFSET_TABLE_ to _DYNAMIC. Mostly from NetBSD. ok nate@ | |||
2003-01-16 | whitespace removal. | Dale Rahn | |
2002-12-18 | Remove pointless 'if 0' code. | Dale Rahn | |
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-12-13 | Compare to ELFMAG byte by byte rather than using full fledged function. | Dale Rahn | |
Also avoids a gas problem for the moment. | |||
2002-12-09 | Build ld.so as a normal shared object, not with special linkage. | Dale Rahn | |
mprotect the necessary bit to make this work right. ok deraadt@ | |||
2002-12-02 | KNF; openbsd@davidkrause.com | Theo de Raadt | |
2002-12-02 | typo; ok miod@ | Christian Weisgerber | |
2002-12-02 | Import propolice (http://www.trl.ibm.com/projects/security/ssp), a stack | Miod Vallat | |
attack protection scheme, into gcc. This protection is enabled by default. It can be turned off by using the -fno-stack-protector flag. Code by Hiroaki Etoh (etoh at jp dot ibm dot com); work on openbsd-specific integration by fgsch@, deraadt@ and myself; tests by fgsch@, naddy@ and myself; beer drinking by myself. Please note that system upgrades with this new code will require a new libc and ld.so to be build and installed before the propolice-enabled compiler can be installed. | |||
2002-11-23 | After fixing these comments, I add another incorrect one. | Dale Rahn | |
2002-11-23 | Implement [u]mul/[u]div/[u]rem with faster version if available | Dale Rahn | |
on machine. Improves speed for dynamic userland processes when active. Idea from Theo. ok deraadt@ | |||
2002-11-23 | clean up comments. | Dale Rahn | |
2002-11-23 | Put in a required item. Should not have been deleted to start with. | Dale Rahn | |
2002-11-23 | Remove some error messages which were incorrectly printed. Some cleanup. | Dale Rahn | |
ok pvalchev@ | |||
2002-11-22 | Fix the comments on which systemcall is being processed, ok deraadt@ | Dale Rahn | |
2002-11-22 | Formatting cleanup, no point in extra nesting block. No functional change. | Dale Rahn | |
2002-11-17 | Terminate printed strings with newlines. | Dale Rahn | |
2002-11-14 | Make error messages on symbol lookup failures more useful. | Dale Rahn | |
2002-11-13 | Check for NULL on pltgot, appearently libraries with no external references | Dale Rahn | |
will not create a PLT on i386. | |||
2002-11-05 | Use define, not number. | 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-23 | mips archdep stuff update while waiting for ok on mi | Per Fogelstrom | |
2002-10-21 | Remove the -D__PIC__ from this, it does not affect the building | Dale Rahn | |
of any current platform, so makes no sense. pointed out by Per. Tested on alpha, i386, macppc, sparc, sparc64 (binary diff). | |||
2002-10-21 | Simplify the ld.so asm api, the data is available other ways. | Dale Rahn | |
tested by naddy@ and myself. | |||
2002-10-04 | Print full 64 bit address. At least until LD_TRACE_LOADED_OBJECTS_FMT[12] | Dale Rahn | |
is supported properly. | |||
2002-09-09 | Add lazy binding support for powerpc ld.so. ok pvalchev@ brad@ | Dale Rahn | |
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-31 | argh, include prototype for dl_fdprintf(), missed by myself and reviewers. | Dale Rahn | |
2002-08-31 | Add the ability to output to file descriptors besides stderr. | Dale Rahn | |
This allows ldd outptut go to stdout like it should. ok deraadt@ | |||
2002-08-28 | o) start new sentence on a new line; | Mike Pechkin | |
o) don't use .Nm w/o argument in .SYNOPSIS; I waste time, when fixing already cleaned pages. :( one man ok@ | |||
2002-08-23 | Fix after recent changes. | Artur Grabowski | |
2002-08-23 | Support 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. | |||
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-08-09 | Various fixes. | Artur Grabowski | |
- JMP_SLOT relocations require a symbol lookup (duh). - compress the nops to not dominate the code. - reorder the installation of the pltgot and always install it when possible. | |||
2002-08-09 | Simplify. | Artur Grabowski | |
2002-08-08 | - Add some missing iflush's | Jason Wright | |
- insert some nop's to make sure all copies are gone from the icache and CPU | |||
2002-08-08 | There was a possible off-by-one in ld.so when loading shared libraries. | Artur Grabowski | |
In some (rare?) cases, where the bss was too small and fit entirely into the leftovers of the data segment we could map one extra page. This is slightly dangerous on PMAP_PREFER machines where mmaps allocations do not happen linearly in the virtual space and we could end up overwriting mappings that are already in use. This also changes the initial allocation from being a MAP_ANON to a MAP_FILE so that we can pass the fd as a PMAP_PREFER hint. | |||
2002-07-30 | knf & ansi | Theo de Raadt | |
2002-07-29 | minor formatting | Artur Grabowski | |
2002-07-29 | Bunch of cleanups and one last bugfix that seems to make things work. | Artur Grabowski | |
Mark COPY relocations as needing to resolve the destination symbol. | |||
2002-07-27 | Commit work in progress before I get drunk tonight. | Artur Grabowski | |
Code from sparc64 and NetBSD. Basically we can link the most, lazy linking works (!), but something else is screwed. | |||
2002-07-27 | I don't see the point of a return at the end of a void function. | Artur Grabowski | |
2002-07-27 | Make self-relocation work. | Artur Grabowski | |
2002-07-27 | this is not sparc64. | Artur Grabowski | |
2002-07-27 | Stop being too creative, steal more code from sparc64. | Artur Grabowski | |
2002-07-27 | Just a skeleton for sparc. Builds, but pieces are missing and it doesn't | Artur Grabowski | |
even get to dl_boot_bind correctly. |