* readelf.c (process_file_header): Don't clear section_headers.
+2021-06-12 Alan Modra <amodra@gmail.com>
+
+ * readelf.c (process_file_header): Don't clear section_headers.
+
2021-06-12 Alan Modra <amodra@gmail.com>
* readelf.c (get_section_headers): Don't test e_shoff here, leave
header->e_shstrndx = filedata->section_headers[0].sh_link;
if (header->e_shstrndx >= header->e_shnum)
header->e_shstrndx = SHN_UNDEF;
- free (filedata->section_headers);
- filedata->section_headers = NULL;
}
return true;