PR2589, ld vs. ld.so
authorAlan Modra <amodra@gmail.com>
Thu, 3 Jun 2021 09:02:30 +0000 (18:32 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Jun 2021 09:02:30 +0000 (18:32 +0930)
PR 2589
* ld.texi (link-time runtime library search path): Mention
plugin library path.  Correct order of search.

ld/ChangeLog
ld/ld.texi

index 2c6615d46c8d667bbd3f31d97787057af22b7a49..3c2aa269b2bc044b1975f1a3a09ec2851a28fa2a 100644 (file)
@@ -1,3 +1,9 @@
+2021-06-03  Alan Modra  <amodra@gmail.com>
+
+       PR 2589
+       * ld.texi (link-time runtime library search path): Mention
+       plugin library path.  Correct order of search.
+
 2021-05-31  Nelson Chu  <nelson.chu@sifive.com>
            Lifang Xia  <lifang_xia@c-sky.com>
 
index 29874688a73a427524c1fecc7f5e3898bfa0034c..e16c6387e70faaaf6f0cb99512195937990bf2ca 100644 (file)
@@ -2317,8 +2317,6 @@ For a native ELF linker, the directories in @code{DT_RUNPATH} or
 libraries needed by it. The @code{DT_RPATH} entries are ignored if
 @code{DT_RUNPATH} entries exist.
 @item
-The default directories, normally @file{/lib} and @file{/usr/lib}.
-@item
 For a linker for a Linux system, if the file @file{/etc/ld.so.conf}
 exists, the list of directories found in that file.  Note: the path
 to this file is prefixed with the @code{sysroot} value, if that is
@@ -2329,8 +2327,16 @@ For a native linker on a FreeBSD system, any directories specified by
 the @code{_PATH_ELF_HINTS} macro defined in the @file{elf-hints.h}
 header file.
 @item
-Any directories specifed by a @code{SEARCH_DIR} command in the
-linker script being used.
+Any directories specified by a @code{SEARCH_DIR} command in a
+linker script given on the command line, including scripts specified
+by @option{-T} (but not @option{-dT}).
+@item
+The default directories, normally @file{/lib} and @file{/usr/lib}.
+@item
+Any directories specified by a plugin LDPT_SET_EXTRA_LIBRARY_PATH.
+@item
+Any directories specified by a @code{SEARCH_DIR} command in a default
+linker script.
 @end enumerate
 
 Note however on Linux based systems there is an additional caveat:  If
This page took 0.029807 seconds and 4 git commands to generate.