* ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
commit04b30e0ee827ea919828907cf33ae874725f02d9
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Oct 2002 15:59:10 +0000 (10 15:59 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 10 Oct 2002 15:59:10 +0000 (10 15:59 +0000)
treefbe226a591e283b62a0e128e6c60969744fb8d8a
parent20fe2ce5fcaf59bf01c7e296264b1e8e3590c90e
* 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