From 4164f2d5abeaae3aaf2de387ddf4125fa06b66b5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 7 Oct 1996 21:30:26 +0000 Subject: [PATCH] * ld.texinfo (Options): Mention .so extensions for shared libraries. --- ld/ChangeLog | 5 +++++ ld/ld.texinfo | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 8687d9a3d0d..00a451855f6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 7 17:29:05 1996 Ian Lance Taylor + + * ld.texinfo (Options): Mention .so extensions for shared + libraries. + Sun Oct 6 22:35:36 1996 Jason Merrill * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections. diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 16ebb6909b0..ad2a6406a11 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -389,8 +389,14 @@ Perform an incremental link (same as option @samp{-r}). Add archive file @var{archive} to the list of files to link. This option may be used any number of times. @code{ld} will search its path-list for occurrences of @code{lib@var{archive}.a} for every -@var{archive} specified. File extensions other than @code{.a} may be -used on certain systems. +@var{archive} specified. + +On systems which support shared libraries, @code{ld} may also search for +libraries with extensions other than @code{.a}. Specifically, on ELF +and SunOS systems, @code{ld} will search a directory for a library with +an extension of @code{.so} before searching for one with an extension of +@code{.a}. By convention, a @code{.so} extension indicates a shared +library. The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which -- 2.30.2