From 599917b82b8592664e680ac7fca4260f0160e169 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 10 Oct 2002 15:59:10 +0000 Subject: * 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. --- ld/ldlang.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ld/ldlang.h') diff --git a/ld/ldlang.h b/ld/ldlang.h index cb4b6d3..57c8c51 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -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 -- cgit v1.1