* ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Oct 2002 15:59:10 +0000 (15:59 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 10 Oct 2002 15:59:10 +0000 (15:59 +0000)
commit599917b82b8592664e680ac7fca4260f0160e169
treee3ea9c21b833848b833549fa6130c3ee0a63a850
parentac62e7a36867559d7a8a31a73328ff27278bb122
* 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/ChangeLog
ld/ldfile.c
ld/ldlang.c
ld/ldlang.h