aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-03-03 12:53:00 +0000
committerNick Clifton <nickc@redhat.com>2020-03-03 12:53:00 +0000
commitd8e4137b5efc2dd5e99c45534cdccbdfcc814f1a (patch)
tree7ff6aa61665f0457153bcfc7e040df47954b02a2
parentf57140990f9be3232ffbc708fb1aade032052c80 (diff)
downloadgdb-d8e4137b5efc2dd5e99c45534cdccbdfcc814f1a.zip
gdb-d8e4137b5efc2dd5e99c45534cdccbdfcc814f1a.tar.gz
gdb-d8e4137b5efc2dd5e99c45534cdccbdfcc814f1a.tar.bz2
Note that the --rpath-link command line option will search the contents of the SEARCH_DIR linker script directive, if one is provided.
PR 25588 * ld.texi (Options): Update the description of the --rpath-link option.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ld.texi15
2 files changed, 19 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 14a917b..94fe79f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-03 Nick Clifton <nickc@redhat.com>
+
+ PR 25588
+ * ld.texi (Options): Update the description of the --rpath-link
+ option.
+
2020-03-02 Alan Modra <amodra@gmail.com>
* plugin.c (plugin_object_p): Return a bfd_cleanup.
diff --git a/ld/ld.texi b/ld/ld.texi
index 9bb3d55..27343c7 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -2011,6 +2011,7 @@ runtime linker would do.
The linker uses the following search paths to locate required shared
libraries:
+
@enumerate
@item
Any directories specified by @option{-rpath-link} options.
@@ -2040,8 +2041,18 @@ libraries needed by it. The @code{DT_RPATH} entries are ignored if
@item
The default directories, normally @file{/lib} and @file{/usr/lib}.
@item
-For a native linker on an ELF system, if the file @file{/etc/ld.so.conf}
-exists, the list of directories found in that file.
+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
+defined, and then any @code{prefix} string if the linker was
+configured with the @command{--prefix=<path>} option.
+@item
+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.
@end enumerate
If the required shared library is not found, the linker will issue a