From cad60a339b2a0a6af675d4243daa78c61eea06b5 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 15 Oct 2014 02:50:03 +0200 Subject: [PATCH] ld.texinfo: "=" path-prefix forces sysroot in scripts not only SEARCH_DIR * ld.texinfo (input files in linker scripts): When mentioning behavior of first character "/" on scripts within sysroot, also mention that effect can be forced by prefixing with "=" and refer to SEARCH_DIR. --- ld/ChangeLog | 4 ++++ ld/ld.texinfo | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7c2cf0487d6..dd7c75e341e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -2,6 +2,10 @@ * ld.texinfo (Options): When mentioning "=" and sysroot, mention that --sysroot controls it, not only through the configuration. + (input files in linker scripts): When mentioning + behavior of first character "/" on scripts within sysroot, also + mention that effect can be forced by prefixing with "=" and + refer to SEARCH_DIR. 2014-10-14 Tristan Gingold diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 58150f9ef64..8eb7ba35274 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -3143,7 +3143,9 @@ with the @samp{/} character, and the script being processed was located inside the @dfn{sysroot prefix}, the filename will be looked for in the @dfn{sysroot prefix}. Otherwise, the linker will try to open the file in the current directory. If it is not found, the -linker will search through the archive library search path. See the +linker will search through the archive library search path. +The @dfn{sysroot prefix} can also be forced by specifying @code{=} +as the first character in the filename path. See also the description of @samp{-L} in @ref{Options,,Command Line Options}. If you use @samp{INPUT (-l@var{file})}, @command{ld} will transform the -- 2.30.2