summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/shlib.c
AgeCommit message (Collapse)Author
2003-04-16string cleanup; ok millertTheo 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-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-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@
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-04-24Add xstrdup() - like strdup but get fatal error if memory is exhausted.Oleg Safiullin
Avoid duplicates in search path. ok espie@
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-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-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
1998-05-11Make usable as a cross-linkerNiklas Hallqvist
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-03-26RCS id cleanupNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt