aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2009-04-06 00:47:09 +0000
committerKazu Hirata <kazu@codesourcery.com>2009-04-06 00:47:09 +0000
commit7d24f02c67bc8efdcfc1806e1f39e045342ae90f (patch)
tree2cd277f5e015bf8ce8611cf74eb1c2ac42f99fa5 /ld/ld.texinfo
parentc71301cd1fd9d760f0f60a59ee237cd85b2a6bbb (diff)
downloadgdb-7d24f02c67bc8efdcfc1806e1f39e045342ae90f.zip
gdb-7d24f02c67bc8efdcfc1806e1f39e045342ae90f.tar.gz
gdb-7d24f02c67bc8efdcfc1806e1f39e045342ae90f.tar.bz2
* ld.texinfo (-L): Mention that -L options do not affect how ld
searches for a linker script unless -T option is specified. * ldfile.c (ldfile_find_command_file): Append the path obtained from the program name to the search path instead of prepending. Add a new parameter "default_only". Restrict the search to the default script location if the new parameter is true. (ldfile_open_command_file_1): New. (ldfile_open_command_file): Call ldfile_open_command_file_1. (ldfile_open_default_command_file): New.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index b6f0a0b..a7169d9 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -673,7 +673,9 @@ option any number of times. The directories are searched in the order
in which they are specified on the command line. Directories specified
on the command line are searched before the default directories. All
@option{-L} options apply to all @option{-l} options, regardless of the
-order in which the options appear.
+order in which the options appear. @option{-L} options do not affect
+how @command{ld} searches for a linker script unless @option{-T}
+option is specified.
If @var{searchdir} begins with @code{=}, then the @code{=} will be replaced
by the @dfn{sysroot prefix}, a path specified when the linker is configured.