summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld
AgeCommit message (Collapse)Author
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-26comma splicePaul Janzen
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-04spellingTheo de Raadt
2002-06-03use issetugid() instead of uid/gid comparisons; from drahnTheo de Raadt
2002-05-24replace code w/ no license w/ public domain codeEric Jackson
deraadt@ ok
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-04-17Ld speed-up patch.Marc Espie
This reduces the memory requirements to build any recent big libtool package, like kde. Tested by miod, fries, naddy, and various.
2002-03-31workaround a problem in vax; some malloc() order is causing this if amongFederico G. Schwindt
valid lengths are 0 length malloc's. tested by miod@, deraadt@ ok.
2002-03-07revert changes made in rev. 1.17; closes pr # 1903. niklas@ ok.Federico G. Schwindt
2002-03-07workaround a gcc bug on vax; hugh@ okFederico G. Schwindt
2002-02-26fix errx(3) arg.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-12-26When cross compiling, by all means prevent the native <machine/exec.h> to beMiod Vallat
picked up. This enables sparc->foo cross-ld to build (don't ask).
2001-12-24Hooks to enable building a cross-ld for mvme88k.Miod Vallat
2001-11-25More MID for m88k updates, grr!Miod Vallat
2001-11-08fixes netbsd PR #10940 and also uses main program's library searchFederico G. Schwindt
path in dlopen(), from netbsd as well.
2001-10-30correct open() checksTheo de Raadt
2001-10-25Code in scanlib similar to main ldd, to recognize fmt1 and fmt2 and useMarc Espie
them.
2001-09-06Use ${CC} to link ld.so, so that it will grok whatever you throw atMarc Espie
it in COPTS/DEBUG.
2001-09-05Use __GLOBAL_OFFSET_TABLE_ consistently.Marc Espie
2001-08-30Detect broken libraries that reference themselves.Marc Espie
Abort immediately, instead of gobbling all memory. ok fgs@
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-07-08Fix an obscure bug: make sure aliases are referenced.Marc Espie
Otherwise, if a shared library uses an aliased symbol in another library, the alias will only be partially resolved (everything setup... except for the real symbol marked as referenced, so the relocation ends up being zero and causes core-dumps on runtimes). Caused quite a few crashes: Xfree's 4 GL (linked with libc_r) or kerberosV exhibited the problem...
2001-06-09Fill some field earlier, should allow better .init/dlopen interaction.Marc Espie
From NetBSD. fgsch@ agrees.
2001-04-17Let ldd scan shared libraries. Since it doesn't load them, it doesn'tMarc Espie
use the hint cache nor anything, but at least it shows what dependencies exist.
2001-04-11sync with recent .Nm changes made in the ELF ldconfig man pageBrad Smith
2000-11-09case of headerTheo de Raadt
2000-10-06ldconfig(1) -> ldconfig(8)Aaron Campbell
2000-09-21Trim down RRS text relocation warnings, no need to see 1000 of themMarc Espie
each time.
2000-09-20Avoid erasing a GOT definition.Marc Espie
This is needed for a -fPIC libgcc.
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyTheo de Raadt
2000-07-31comma splicePaul Janzen
2000-06-28Improve remove_search_dir(), avoid memory leak.Oleg Safiullin
Add support for -U option: Unconfigure directories specified on the command line or remove inaccessible directories from search path if no directories spec- ified. This option cannot be used with -m. - this option helps to correctly pkg_delete packages like postgresql, mysql (with shared libs in package's own directory). ok espie@
2000-05-25rename rtld(1) to ld.so(1)Theo de Raadt
2000-04-30- do not miss /usr/lib in search path.Oleg Safiullin
- ldconfig -R: do not add /usr/lib to search path, use previously configured dirs instead. - avoid duplicates in search path ok espie@
2000-04-30misc header reordering, remove #undef of relocation_infoBrandon Creighton
ok espie@
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-04-24Add xstrdup() - like strdup but get fatal error if memory is exhausted.Oleg Safiullin
Avoid duplicates in search path. ok espie@
2000-04-17change MAX_ALIGNMENT to double, as requested by djb@cr.yp.toTheo de Raadt
2000-02-21Revert the last revert. (with the bug fixed)Artur Grabowski
2000-02-21back out recent change. completely breaks ld on the sparc:Theo de Raadt
collect2: ld terminated with signal 11 [Segmentation fault]
2000-02-11Let weak symbols take precedence over symbols read from 2nd hand libraries.Marc Espie
This fixes an important bug: libc now uses weak symbols a lot. Without this patch, dynamic linking with libraries that reference libc would mean those symbols would not be resolved, as weak symbols are good enough for linking, but 2nd hand libraries symbols are not. Not 100% sure this won't trigger problems later (nothing yet), but this fixes the immediate problem. Approved by niklas@ and millert@
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-02-01Cross-tools fixes:Marc Espie
* Rely on BYTE_ORDER instead of specific values of XHOST to determine cross-endianness, * Link necessary cross-includes to the right location, * Add some necessary stubs for cross-endian sparc and cross-endian m68k. This does let i386->m68k work, and probably brings i386->sparc most of the way there... Approved by mickey@, niklas@ is to busy to answer email as usual...