Fix a seg-fault when stripping a corrupt binary.
PR 20089 * objcopy.c (group_signature): Fail if the input symbol table has not been loaded.
This commit is contained in:
parent
193bd37899
commit
bcc3a8bca1
|
@ -1,5 +1,9 @@
|
||||||
2016-06-02 Nick Clifton <nickc@redhat.com>
|
2016-06-02 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 20089
|
||||||
|
* objcopy.c (group_signature): Fail if the input symbol table has
|
||||||
|
not been loaded.
|
||||||
|
|
||||||
* dwarf.c (display_debug_frames): Do not display any
|
* dwarf.c (display_debug_frames): Do not display any
|
||||||
interpretation if the block consists solely of DW__CFA_NOPs.
|
interpretation if the block consists solely of DW__CFA_NOPs.
|
||||||
|
|
||||||
|
|
|
@ -1125,6 +1125,10 @@ group_signature (asection *group)
|
||||||
bfd *abfd = group->owner;
|
bfd *abfd = group->owner;
|
||||||
Elf_Internal_Shdr *ghdr;
|
Elf_Internal_Shdr *ghdr;
|
||||||
|
|
||||||
|
/* PR 20089: An earlier error may have prevented us from loading the symbol table. */
|
||||||
|
if (isympp == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (bfd_get_flavour (abfd) != bfd_target_elf_flavour)
|
if (bfd_get_flavour (abfd) != bfd_target_elf_flavour)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue