aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-09-03 14:11:38 +0000
committerNick Clifton <nickc@redhat.com>2004-09-03 14:11:38 +0000
commit6e3b68350d29fde1dedc4772bbdce07ac3669f97 (patch)
tree046ae4cbf93ceb3f5ac0aab53a298b9bc6fdd99d
parentc7efc4d538d9af523e944940c00c8f676517c784 (diff)
downloadfsf-binutils-gdb-6e3b68350d29fde1dedc4772bbdce07ac3669f97.zip
fsf-binutils-gdb-6e3b68350d29fde1dedc4772bbdce07ac3669f97.tar.gz
fsf-binutils-gdb-6e3b68350d29fde1dedc4772bbdce07ac3669f97.tar.bz2
PR 360
(handle_COMDAT): Replace abort with an warning message and allow the scan to continue.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/coffcode.h7
2 files changed, 10 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0368d68..1093b97 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-03 Nick Clifton <nickc@redhat.com>
+
+ PR 360
+ * coffcode.h (handle_COMDAT): Replace abort with an warning
+ message and allow the scan to continue.
+
2004-09-02 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index b96e5f0..51d00c6 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -829,8 +829,6 @@ handle_COMDAT (abfd, sec_flags, hdr, name, section)
/* The first time we've seen the symbol. */
union internal_auxent aux;
- seen_state = 1;
-
/* If it isn't the stuff we're expecting, die;
The MS documentation is vague, but it
appears that the second entry serves BOTH
@@ -858,7 +856,10 @@ handle_COMDAT (abfd, sec_flags, hdr, name, section)
function). See comment above for more. */
if (strcmp (name, symname) != 0)
- abort ();
+ _bfd_error_handler (_("%B: warning: COMDAT symbol '%s' does not match section name '%s'"),
+ abfd, symname, name);
+
+ seen_state = 1;
/* This is the section symbol. */
bfd_coff_swap_aux_in (abfd, (PTR) (esym + bfd_coff_symesz (abfd)),