* 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.
This commit is contained in:
Kazu Hirata
2009-04-06 00:47:09 +00:00
parent c71301cd1f
commit 7d24f02c67
5 changed files with 65 additions and 20 deletions

View File

@ -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;