summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/ld.c
AgeCommit message (Collapse)Author
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-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-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-02-26fix errx(3) arg.Federico G. Schwindt
2001-10-30correct open() checksTheo 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...
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-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@
1999-05-24This patch lets sparc ld handle pic/PIC relocations mix, by simply forcingMarc Espie
everything to fit into pic mode. More extensive changes (like tagging relocs with pic/PIC, sorting, and putting pic nearest the beginning of the GOT) would be needed for full handling pic relocs with a sizeable number of PIC relocs.
1998-11-25fix commentkstailey
1998-08-11RCS Id I have had lying around.Niklas Hallqvist
1998-02-22Add emulation of binutils 2.x ld options: -rpath dir, -shared, -soname,Theo de Raadt
--whole-archive, --no-whole-archive for compatibility with ELF ports and to aid migration to bintils. Update manpage with new options; jonathan
1997-04-10calc page alignment correctly for -p; pk@netbsdTheo de Raadt
1997-04-09the theTheo de Raadt
1997-02-21Get symbol counts right when counting weak symbols in shared libraries asThorsten Lockert
shared objects are being built.
1996-12-22Correct handling of weak symbols in shared libraries; from pk@netbsd.orgThorsten Lockert
1996-06-17align bss on machdep boundary in case something else failed toTheo de Raadt
1996-03-30From NetBSD: merge of 960317Niklas Hallqvist
1995-12-30from netbsd:Theo de Raadt
Simplify update of r_addend field in relocation record if `-r' is on. The old quirky code did strange things.
1995-10-18initial import of NetBSD treeTheo de Raadt