summaryrefslogtreecommitdiff
path: root/libexec
AgeCommit message (Collapse)Author
2006-05-10fix a bunch of missing [mc]alloc failure checks by using xcalloc/xmalloc,Dale Rahn
also a couple of invalid allocation/references while at it.
2006-05-10pretty this up; ok drahnTheo de Raadt
2006-05-08prettierTheo de Raadt
2006-05-08more spacingTheo de Raadt
2006-05-08de-spaceTheo de Raadt
2006-05-07Initialize oprebind_data so that unintialized memory is not referenced.Dale Rahn
caught by niallo
2006-05-06While os-note-elf.h uses '.long' on the openbsd note section, theyDale Rahn
are really stored as ints. keep the variable name the same as the type. (just a variable rename)
2006-05-06If there is a conflict between two symbols, and one of the symbols is aDale Rahn
reference to the local object, go ahead and save save the local symbol in the library cache, a fixup will be generated in any binary which overrides the symbol, however, the rest of the program which do not override the symbol will not have to pay for the fixup. Cuts about of prebind data here by 32%
2006-05-06Do not write the same data to a library that is already there whenDale Rahn
using -m also allows a user to run this on their binaries if the system libraries already have prelink data.
2006-05-06improve wording somewhat.Dale Rahn
2006-05-05sigh, build on non gcc3 systems.Dale Rahn
2006-05-05Prebind should not force lazy binding to be turned off during dlopen()Dale Rahn
the presense of LD_BIND_NOW should control that. Fixes the X server.
2006-05-05various fixes up; some from michael knudsen, some from myselfJason McIntyre
2006-05-05Ignore binaries which are not OpenBSD binaries (.note section), some cleanupDale Rahn
2006-05-05Make certain that it doesn't try to load prelink info once the primary linkDale Rahn
is finished. prelink on dlopen cannot work, the symbol cache still works, just cannot be preloaded. fixes xchm.
2006-05-05Add -o <output> mode in addition to strip in place, '-' is stdout.Dale Rahn
2006-05-04Work around a problem on sparc32 (for now), some debug cleanup.Dale Rahn
2006-05-04When copying a prog reference from a lib do not put it in the common tableDale Rahn
but put a 'invalid' marker there instead.
2006-05-04Add missing copyright on header file, OpenBSD -> .Ox in manpages, thanks Dries.Dale Rahn
2006-05-04Avoid a couple of potential crashes if the input data isn't right. ok beck@Dale Rahn
2006-05-04Fix wordo, pointed out by jmc@Dale Rahn
2006-05-04Dont build/install prebind tools just yet.Dale Rahn
2006-05-03Using mmap for these is going to be trickier than I thought, go aheadDale Rahn
and do the allocation failure checks for now.
2006-05-03several fixes dealing with determining if a program or library is beingDale Rahn
processed. Also handles symlinks/hardlinks between binaries better.
2006-05-03goodbye noisy debug.Dale Rahn
2006-05-03checks that libraries are libaries and programs are programs. (needs cleanup)Dale Rahn
2006-05-03When loading 'binaries' ignore libraries.Dale Rahn
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-03Extra paranoid, do not allow the dynamic linker to have unresolved referencesDale Rahn
as this causes much frustration as it fails to run after being installed and is a paint to recover.
2006-05-03Keep the state of the debugger constistant, let it know a the dynamicDale Rahn
linker is adding or removing a library before it does the act. Discussed with kurt@ some time ago.
2006-05-03Rewrite the ld.so syscall stubs as macros. no binary change.Dale Rahn
2006-04-25kill setjmp() and alarm() methods, which are almost always inverted signalTheo de Raadt
races. use poll() instead. by marcus@nazgul.ch
2006-04-21lint cleanup; ok ray moritz dhillTheo de Raadt
2006-04-17spaces.Theo de Raadt
can someone please rewrite this to not use setjmp(), but instead a poll() loop? please & thank you
2006-04-11Plug memory leaks.Ray Lai
Spotted by NetBSD Coverity CID 1603, improvements by jaredy@ and otto@. OK otto@ and millert@
2006-04-10incorrect freeaddrinfo() call on failure; mike.pechkin, otto okTheo de Raadt
2006-04-02malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaksDamien Miller
suggested by kjell@; ok otto@ pat@ millert@ jaredy@
2006-04-02some extern and gooTheo de Raadt
2006-04-02#ifdef lint not LINTTheo de Raadt
2006-04-02a FALLTHROUGH and one size_t castTheo de Raadt
2006-04-02use SEEK_* for lseek()Theo de Raadt
2006-04-01minor lint cleaning; ok millertTheo de Raadt
2006-03-31ARGSUSED for signal handlersTheo de Raadt
2006-03-26Remove an extraneous prototypeKjell Wooding
From Andrey Matveev
2006-03-26More KNF. Prodding from ray@Kjell Wooding
No binary change.
2006-03-26Get this closer to KNF (get rid of block-declared vars)Kjell Wooding
ok beck@
2006-03-26KNF. No binary change.Kjell Wooding
2006-03-24Remove telldir/seekdir support from the internal ld.so lib, it's notOtto Moerbeek
used. ok drahn@
2006-03-17fix a few off-by-ones; from NetBSD; ok deraadt@Otto Moerbeek
2006-03-14spamd can show the wrong IP address to clients in a %A message becauseBob Beck
the per-connection copy of the connecting address was being pointed to the on-stack copy. Spotted (and fix suggested) by Michael Durket in pr 5046 ok deraadt@