aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-10-10 15:59:10 +0000
committerJakub Jelinek <jakub@redhat.com>2002-10-10 15:59:10 +0000
commit599917b82b8592664e680ac7fca4260f0160e169 (patch)
treee3ea9c21b833848b833549fa6130c3ee0a63a850 /ld/ldlang.h
parentac62e7a36867559d7a8a31a73328ff27278bb122 (diff)
downloadgdb-599917b82b8592664e680ac7fca4260f0160e169.zip
gdb-599917b82b8592664e680ac7fca4260f0160e169.tar.gz
gdb-599917b82b8592664e680ac7fca4260f0160e169.tar.bz2
* 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.
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r--ld/ldlang.h1
1 files changed, 1 insertions, 0 deletions
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