From 422b6f14400e65d70cf20cde6140bd563cf493ee Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Thu, 10 Mar 2011 10:26:26 +0000 Subject: [PATCH] [PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR BFD. ld/ChangeLog: 2011-03-10 Dave Korn * ldlang.c (lang_check): Don't run checks on dummy IR BFDs. --- ld/ChangeLog | 4 ++++ ld/ldlang.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 07dbcee1371..8283becc8dc 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2011-03-10 Dave Korn + + * ldlang.c (lang_check): Don't run checks on dummy IR BFDs. + 2011-03-10 Dave Korn * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag, diff --git a/ld/ldlang.c b/ld/ldlang.c index d43aa239936..76b02f47665 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -5754,6 +5754,11 @@ lang_check (void) for (file = file_chain.head; file != NULL; file = file->input_statement.next) { +#ifdef ENABLE_PLUGINS + /* Don't check format of files claimed by plugin. */ + if (file->input_statement.claimed) + continue; +#endif /* ENABLE_PLUGINS */ input_bfd = file->input_statement.the_bfd; compatible = bfd_arch_get_compatible (input_bfd, link_info.output_bfd, -- 2.30.2