diff options
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index a1f43e6..e0230c7 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -13574,6 +13574,10 @@ load_debug_section (enum dwarf_section_display_enum debug, void * data) Elf_Internal_Shdr * sec; Filedata * filedata = (Filedata *) data; + /* Without section headers we cannot find any sections. */ + if (filedata->section_headers == NULL) + return FALSE; + if (filedata->string_table == NULL) { Elf_Internal_Shdr * strs; |