summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/rtld
AgeCommit message (Collapse)Author
2008-09-03Provide our own calloc() since we provide our own malloc(), otherwise we won'tMiod Vallat
be able to link against libc_pic.a anyway.
2007-05-31convert to new .Dd format;Jason McIntyre
2005-12-21Userland programs should include <errno.h> not <sys/errno.h>Todd C. Miller
OK deraadt@
2005-09-30rather surprised to find a vsprintf still lying around here..Theo de Raadt
2005-09-28enter rtld, to install the man page at leastTheo de Raadt
2005-03-16fix a broken list;Jason McIntyre
various other tweaks; ok deraadt@
2004-11-08Sync the weak symbol logic with the ELF ld.so, and use N_AUX() instead ofMiod Vallat
rolling our own version; no functional changes. ok millert@
2003-08-15remove extra \n in {warn,err}{,x} callsTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-08Previously, ld.so would use a single page for mapping the hints fileTodd C. Miller
and then, if that was not big enough, map the rest of it contiguously. However, there is no guarantee that the address space after the first mmap has not already been used by something else. Instead, just fstat the file and map up to st_size. Also reorganized the code a tad and added some sanity checks for st_size. Problem tracked down by dhartmei@ and mickey@; drahn@ OK.
2003-01-19give a second chance for loading dependent modules:Marc Espie
look in the path of the main map before giving up. ok deraadt@. (This fixes a few kde issues, and removes loads of needs for ldconfig)
2003-01-19revamp .init call code to be saner:Marc Espie
- build a tree of modules inter-dependencies. - make sure dependent modules are .init'ed before depending modules. - flag initialization so that cycles don't bork ld.so. okay deraadt@, drahn@.
2003-01-19In error message from dependent libraries, mention which dependent libraryMarc Espie
is trying to load another library.
2003-01-05fix for PR3053 - NULL deref when fd == NULL in first dlsym() argPeter Valchev
ok miod drahn marc
2002-12-12don't link LIBCRT0 into ld.so (for DESTDIR builds); PR2928; ok fgsch@, millert@Markus Friedl
2002-12-11o Check mmap() return value against MAP_FAILED, not -1.Todd C. Miller
o Prevent close() from clobbering errno. Patch from Peter Werner; closes PR 2995
2002-12-02KNF; openbsd@davidkrause.comTheo de Raadt
2002-12-02Import propolice (http://www.trl.ibm.com/projects/security/ssp), a stackMiod 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-29do not redefine NULLTheo de Raadt
2002-09-07ansification of ldMarco S Hyman
* normalized the signatures of the functions passed to each_file() and each_full_file(). In most cases that meant adding a void *dummy. In one case it changed an int to a void*, but the arg was only checked for zero/not-zero so the change was not significant. * removes unused code and structures. * makes sure printf args match their format. * got rid of some of the gcc -Wall warnings OK deraadt@
2002-07-27ask uvm to map the bss of each .so module non-executable. again, weTheo de Raadt
cannot do this to the data segments until we know how big the got/plt zone is... anyone want to track that down?
2002-07-19convert functions from K&R style to prototype style.Marco S Hyman
Function arg types have not yet been fixed. OK fgs@, espie@
2002-07-17un-__P the code. fgs says "looks ok."Marco S Hyman
2002-07-15space to tab cleanup. Nothing but whitespace changes in this commit.Marco S Hyman
2002-07-10First of some clean-up commits. This one only removes use ofMarco S Hyman
register variables. clean-up concept ok deraadt@
2002-06-03use issetugid() instead of uid/gid comparisons; from drahnTheo de Raadt
2002-05-11Add missing libraries to bsd.prog.mk (mostly kerberosV)Marc Espie
Use them in DPADD throughout the tree. Fix a few mispells (LIBMATH -> LIBM...) Wipe obsolete lib (LIBRESOLV) Sort added missing libraries, move obsolete stuff apart. Synch documentation in bsd.README ok deraadt@
2002-03-07revert changes made in rev. 1.17; closes pr # 1903. niklas@ ok.Federico G. Schwindt
2002-02-14From NetBSD:Federico G. Schwindt
Deal with weak symbols when looking up in shared libraries; tested by marc@ miod@ and myself.
2002-02-10spellingTheo de Raadt
2001-11-08fixes netbsd PR #10940 and also uses main program's library searchFederico G. Schwindt
path in dlopen(), from netbsd as well.
2001-09-06Use ${CC} to link ld.so, so that it will grok whatever you throw atMarc Espie
it in COPTS/DEBUG.
2001-06-09Fill some field earlier, should allow better .init/dlopen interaction.Marc Espie
From NetBSD. fgsch@ agrees.
2000-11-09case of headerTheo de Raadt
2000-05-25rename rtld(1) to ld.so(1)Theo de Raadt
2000-04-27Call ctor/dtor lists generated by collect2 as well.Marc Espie
Since those are properly protected against multiple execution, even if collect2/ld manages to link them at some point, this won't add problems.
2000-04-24Make dlopened modules prefer symbols defined locallyNiklas Hallqvist
2000-02-03Deal with empty path element in LD_LIBRARY_PATH.Todd C. Miller
o Don't try and look up an empty element in the hints file o Convert "" to "." when adding to the list of search dirs Perviously, an LD_LIBRARY_PATH that ended in ':' was ignored.
2000-01-11Reverse order of ^lib and '/' checks since ^lib is cheaper; espie@Todd C. Miller
2000-01-11Fix the logic that determines whether or not a dlopen()'d name shouldTodd C. Miller
be looked for in the libary search path. If a name has a '/' in it, treat it as a pathname, even if it starts with "lib"; gsar@ActiveState.com
1999-12-10bad espie, commiting bad patches, with junk in them that should not be thereTheo de Raadt
1999-12-09dlopen and dlsym take const char * parameters.Marc Espie
Fix prototypes, propagate const where applicable.
1999-10-26indentTheo de Raadt
1999-09-06succesfully -> successfullyAaron Campbell
1999-05-13libary -> library, other misc correctionsAaron Campbell
1998-08-28set RTLD_DL flag before refcount++ returns; michaels@inet.noTheo de Raadt
1998-08-05setuid/setgid caveats; formTheo de Raadt
1998-07-22add a section about LD_PRELOAD; noted as missing by form@pppvs.itam.nsc.ruTheo de Raadt
1998-03-26RCS id cleanupNiklas Hallqvist
1997-11-14pk: Expand on shared object's `.init' functions a bit, and mentionTheo de Raadt
`/usr/lib/c++rt.o'.