summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld
AgeCommit message (Collapse)Author
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...
2000-01-27Add `-R' option (rescan previously configured directories) support.Oleg Safiullin
Tested by espie@
2000-01-23Fix `internal consistency errors': all warnings for undefined symbols MUSTMarc Espie
handle reported_undefineds correctly. Probably unseen before now because this warning only occurred for symbols that also triggered other warnings ? or maybe no-one cares.
2000-01-16Kill XXX code which is bogus and unused anyway (no call with dodotpath==1Marc Espie
and major !=-1 anywhere). Simplify test logic: it's enough to check path != NULL to know whether we found something. cmpdewey() code is enough to ensure we get the best one (libfoo.a doesn't change n, any appropriate libfoo.so will take precedence).
2000-01-16Bug-fix: skipping inappropriate versions is independent of whetherMarc Espie
we found something correct or not.
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
2000-01-02revert back 1.4->1.5.assar
ld (and ld.so) should take the shared library of the highest version in the first directory that it founds. this is the way ld/ld.so has traditionally worked since SunOS 4 and this is the way it should work. before changing this back - please make sure you understand the semantics of this and that you are not just hiding some other bug but toggling this change. also verify the example in the PR. see PR/972
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-08-25comment typoNiklas Hallqvist
1999-08-25Remove redundant test (which I am sure gcc removed by itself anyhow)Niklas Hallqvist
1999-08-24Enable dlopen(3) to work in statically linked binariesNiklas Hallqvist
1999-08-24Remove -g accidentally committed by someoneNiklas Hallqvist
1999-08-24Align defines nicelyNiklas Hallqvist
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.
1999-05-21Be more specific about dynamic libraries: ldd does not know how to handleMarc Espie
them, but they should be `reasonable' objects to pass to it. Otherwise, collect2 will get confused if the gcc driver is used to build dynamic libraries.
1999-05-13libary -> library, other misc correctionsAaron Campbell
1999-05-10cross-ld for sparc: iflush as nop, since it won't compile on non-sparc,Marc Espie
and is only needed for rtld anyway. and missing md_swap routines as well.
1999-05-10add needed declaration of struct ranlib tag to keep cross-endian toolsMarc Espie
gcc-happy.
1999-02-20fix library search problem; the linker would stop searchingMarco S Hyman
for shared libs when the first was found... thus it would miss a newer version found later in the search path
1999-02-09Removal of mvme88k/* files - again...Steve Murphree
1999-02-09Corrected mvme88k vs. m88k directories.Steve Murphree
1999-02-09Moved from mvme88kSteve Murphree
1999-02-09Fixed mvme88k vs. m88k MACHINE_ARCHSteve Murphree
1999-01-23Merge _GLOBAL_OFFSET_TABLE_ and __GLOBAL_OFFSET_TABLE_ atMarc Espie
linking time, so that we can remove the corresponding kludge from gas.
1998-11-25fix commentkstailey
1998-08-28set RTLD_DL flag before refcount++ returns; michaels@inet.noTheo de Raadt
1998-08-11RCS Id I have had lying around.Niklas Hallqvist
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-05-16remove host defs when getting target onesNiklas Hallqvist
1998-05-14Hey, vax is LE!Niklas Hallqvist
1998-05-11Make usable as a cross-linkerNiklas Hallqvist
1998-05-11Document -ZNiklas Hallqvist
1998-04-28use Xr more oftenTheo de Raadt
1998-04-26If a good matching shared library is found, don't look in the nextTheo de Raadt
directories. This is compatible with the SunOS behaviour. Also, it fixes a problem where it was not possible for some 3rd party package to have a library with the same name as a library already in the system, and a lower version number. The highest version would always be picked. This particular problem shows up with Mozilla, which has a libutil.so.1.0; fvdl
1998-04-25type errorsNiklas Hallqvist
1998-04-25removed improper use of ArDavid Leonard
add missing arguments to the flag description comment out (empty) FILES section use Pa for pathnames various prettyness
1998-03-26RCS id cleanupNiklas 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-11-14pk: Expand on shared object's `.init' functions a bit, and mentionTheo de Raadt
`/usr/lib/c++rt.o'.
1997-11-05Handle relocation of misaligned symbols. Handle all three cases by the sameTheo de Raadt
macro for clarity; pk
1997-09-14exit 1, not count, because if count > 127... or if count == 255+1Theo de Raadt