PR2589, ld vs.

Message ID
State New
Headers show
  • PR2589, ld vs.
Related show

Commit Message

Jan Beulich via Binutils June 3, 2021, 9:04 a.m.
PR 2589
	* ld.texi (link-time runtime library search path): Mention
	plugin library path.  Correct order of search.

Alan Modra
Australia Development Lab, IBM


diff --git a/ld/ld.texi b/ld/ld.texi
index 29874688a73..e16c6387e70 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -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.
-The default directories, normally @file{/lib} and @file{/usr/lib}.
 For a linker for a Linux system, if the file @file{/etc/}
 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.
-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}).
+The default directories, normally @file{/lib} and @file{/usr/lib}.
+Any directories specified by a plugin LDPT_SET_EXTRA_LIBRARY_PATH.
+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