mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-25 20:10:38 +00:00
Fix abort when running tools on a bogus binary.
PR binutils/20907 * peicode.h (pe_ILF_build_a_bfd): Replace abort with error return.
This commit is contained in:
parent
e2996cc315
commit
52c4f3bdd5
@ -5,6 +5,9 @@
|
||||
|
||||
2016-12-05 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/20907
|
||||
* peicode.h (pe_ILF_build_a_bfd): Replace abort with error return.
|
||||
|
||||
PR binutils/20921
|
||||
* aoutx.h (squirt_out_relocs): Check for and report any relocs
|
||||
that could not be recognised.
|
||||
|
@ -892,8 +892,8 @@ pe_ILF_build_a_bfd (bfd * abfd,
|
||||
if (import_name_type == IMPORT_ORDINAL)
|
||||
{
|
||||
if (ordinal == 0)
|
||||
/* XXX - treat as IMPORT_NAME ??? */
|
||||
abort ();
|
||||
/* See PR 20907 for a reproducer. */
|
||||
goto error_return;
|
||||
|
||||
#ifdef COFF_WITH_pex64
|
||||
((unsigned int *) id4->contents)[0] = ordinal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user