aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2011-03-10 10:26:26 +0000
committerDave Korn <dave.korn@artimi.com>2011-03-10 10:26:26 +0000
commit422b6f14400e65d70cf20cde6140bd563cf493ee (patch)
tree2c802abcaefdc838488bb4c2b585045ef20dcff1 /ld
parent8543fde54aeb0a961400b8d0d14b89dcc7708a2f (diff)
downloadgdb-422b6f14400e65d70cf20cde6140bd563cf493ee.zip
gdb-422b6f14400e65d70cf20cde6140bd563cf493ee.tar.gz
gdb-422b6f14400e65d70cf20cde6140bd563cf493ee.tar.bz2
[PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR BFD.
ld/ChangeLog: 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 07dbcee..8283bec 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
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,
wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
* ldmain.c (add_archive_element): Set it if the member is claimed.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index d43aa23..76b02f4 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,