Fix runtime failure triggered by a corrupt ecoff input file.
PR binutils/21781 * coffcode.h (handle_COMDAT): Replace abort with an error message and return.
This commit is contained in:
parent
27841e762c
commit
e4e21d9ed1
@ -1,3 +1,9 @@
|
||||
2017-07-18 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/21781
|
||||
* coffcode.h (handle_COMDAT): Replace abort with an error message
|
||||
and return.
|
||||
|
||||
2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/21782
|
||||
|
@ -997,7 +997,13 @@ handle_COMDAT (bfd * abfd,
|
||||
|| 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
|
||||
|
Loading…
Reference in New Issue
Block a user