This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [4/6][PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR BFD.
On 26/02/2011 00:46, Dave Korn wrote:
ENOPATCH!
>From 6b631342632bfdfde0577465ba4e0fd543b7e463 Mon Sep 17 00:00:00 2001
From: Dave Korn <dave.korn.cygwin@gmail.com>
Date: Sat, 19 Feb 2011 23:48:10 +0000
Subject: [PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR BFD.
ld/ChangeLog:
2011-02-20 Dave Korn <...
* ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
---
ld/ldlang.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ld/ldlang.c b/ld/ldlang.c
index b36dc6e..7a1753d 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -5753,6 +5753,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,