summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld
AgeCommit message (Collapse)Author
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...
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