Do not dump the contents of SHT_NOBITS sections - they have no file space
assigned to their contents.
This commit is contained in:
parent
68b6ddd08f
commit
e69f2d2194
|
@ -1,3 +1,8 @@
|
||||||
|
2003-10-30 Marshall T. Vandegrift <llasram at wuli dot nu>
|
||||||
|
|
||||||
|
* readelf.c (dump_section): Do not dump the contents of SHT_NOBITS
|
||||||
|
sections - they have no file space assigned to their contents.
|
||||||
|
|
||||||
2003-10-28 Segher Boessenkool <segher@kernel.crashing.org>
|
2003-10-28 Segher Boessenkool <segher@kernel.crashing.org>
|
||||||
|
|
||||||
* readelf.c (dump_section): Don't display DEL characters.
|
* readelf.c (dump_section): Don't display DEL characters.
|
||||||
|
|
|
@ -6055,7 +6055,7 @@ dump_section (Elf_Internal_Shdr *section, FILE *file)
|
||||||
|
|
||||||
bytes = section->sh_size;
|
bytes = section->sh_size;
|
||||||
|
|
||||||
if (bytes == 0)
|
if (bytes == 0 || section->sh_type == SHT_NOBITS)
|
||||||
{
|
{
|
||||||
printf (_("\nSection '%s' has no data to dump.\n"),
|
printf (_("\nSection '%s' has no data to dump.\n"),
|
||||||
SECTION_NAME (section));
|
SECTION_NAME (section));
|
||||||
|
|
Loading…
Reference in New Issue