PR binutils/21781
* coffcode.h (handle_COMDAT): Replace abort with an error message
and return.
+2017-09-04 Nick Clifton <nickc@redhat.com>
+
+ Import from mainline:
+
+ PR binutils/21781
+ * coffcode.h (handle_COMDAT): Replace abort with an error message
+ and return.
+
2017-09-04 Alan Modra <amodra@gmail.com>
PR 22067
|| isym.n_sclass == C_EXT)
&& BTYPE (isym.n_type) == T_NULL
&& isym.n_value == 0))
- abort ();
+ {
+ /* Malformed input files can trigger this test.
+ cf PR 21781. */
+ _bfd_error_handler (_("%B: error: unexpected symbol '%s' in COMDAT section"),
+ abfd, symname);
+ goto breakloop;
+ }
/* FIXME LATER: MSVC generates section names
like .text for comdats. Gas generates