aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
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/ldmain.c
parentc71301cd1fd9d760f0f60a59ee237cd85b2a6bbb (diff)
downloadfsf-binutils-gdb-7d24f02c67bc8efdcfc1806e1f39e045342ae90f.zip
fsf-binutils-gdb-7d24f02c67bc8efdcfc1806e1f39e045342ae90f.tar.gz
fsf-binutils-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/ldmain.c')
-rw-r--r--ld/ldmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 85b9c2b..7cb4fc9 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -376,7 +376,7 @@ main (int argc, char **argv)
char *s = ldemul_get_script (&isfile);
if (isfile)
- ldfile_open_command_file (s);
+ ldfile_open_default_command_file (s);
else
{
lex_string = s;