[PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR...
authorDave Korn <dave.korn@artimi.com>
Thu, 10 Mar 2011 10:26:26 +0000 (10:26 +0000)
committerDave Korn <dave.korn@artimi.com>
Thu, 10 Mar 2011 10:26:26 +0000 (10:26 +0000)
ld/ChangeLog:

2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>

* ldlang.c (lang_check): Don't run checks on dummy IR BFDs.

ld/ChangeLog
ld/ldlang.c

index 07dbcee1371a236619b561dc3c6b912b447de49c..8283becc8dc25e0abd348ac97cd2a0a666c76474 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
+
 2011-03-10  Dave Korn  <dave.korn.cygwin@gmail.com>
 
        * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
index d43aa2399362781c77bf2fdb2e25ba3d6e7085af..76b02f4766586f4af33dabdf6b0220bd4b07f5a4 100644 (file)
@@ -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,