aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-07 21:30:26 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-07 21:30:26 +0000
commit4164f2d5abeaae3aaf2de387ddf4125fa06b66b5 (patch)
treeeac937340470f0efec52dca5b73e70a463b87da9 /ld/ld.texinfo
parent7336948874d13372e7db33864fecfcdff1a55569 (diff)
downloadbinutils-4164f2d5abeaae3aaf2de387ddf4125fa06b66b5.zip
binutils-4164f2d5abeaae3aaf2de387ddf4125fa06b66b5.tar.gz
binutils-4164f2d5abeaae3aaf2de387ddf4125fa06b66b5.tar.bz2
* ld.texinfo (Options): Mention .so extensions for shared
libraries.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo10
1 files changed, 8 insertions, 2 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 16ebb69..ad2a640 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