From 7d24f02c67bc8efdcfc1806e1f39e045342ae90f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 6 Apr 2009 00:47:09 +0000 Subject: * 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. --- ld/ldfile.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/ldfile.h') diff --git a/ld/ldfile.h b/ld/ldfile.h index bb62249..e675be9 100644 --- a/ld/ldfile.h +++ b/ld/ldfile.h @@ -50,6 +50,8 @@ extern void ldfile_add_library_path (const char *, bfd_boolean cmdline); extern void ldfile_open_command_file (const char *name); +extern void ldfile_open_default_command_file + (const char *name); extern void ldfile_open_file (struct lang_input_statement_struct *); extern bfd_boolean ldfile_try_open_bfd -- cgit v1.1