PR25570, ld duplicate "warning: changing start of section"
[deliverable/binutils-gdb.git] / ld / ld.texi
index 634b7a928081daa0af003fd6970b80c19718675e..27343c798f39001fcae60306753fd94ed51a107e 100644 (file)
@@ -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
@@ -7614,7 +7625,7 @@ will normally be used on systems having a newer glibc.
 and restores volatile registers around the call into glibc.  Normally,
 this is done when the linker detects a call to __tls_get_addr_desc.
 Such calls then go via the register saving stub to __tls_get_addr_opt.
-@option {--no-tls-get-addr-regsave} disables generation of the
+@option{--no-tls-get-addr-regsave} disables generation of the
 register saves.
 
 @cindex PowerPC64 OPD optimization
This page took 0.024512 seconds and 4 git commands to generate.