* ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if

they have OUTPUT_FORMAT not matching actual output format.
	* ldlang.c (lang_get_output_target): New function.
	(open_output): Use it.
	* ldlang.h (lang_get_output_target): New prototype.
This commit is contained in:
Jakub Jelinek
2002-10-10 15:59:10 +00:00
parent ac62e7a368
commit 599917b82b
4 changed files with 126 additions and 19 deletions

View File

@@ -483,5 +483,6 @@ extern void lang_register_vers_node
struct bfd_elf_version_deps *));
boolean unique_section_p PARAMS ((const char *));
extern void lang_add_unique PARAMS ((const char *));
extern const char *lang_get_output_target PARAMS ((void));
#endif