Do not ignore sections without the LOAD flag when disassemble_all is true.
Only print a message about disassembling a section if it contains some data.
This commit is contained in:
parent
3d85aebe2a
commit
f1e2bc6264
2 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,9 @@
|
||||||
2003-07-24 Nick Clifton <nickc@redhat.com>
|
2003-07-24 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* objdump.c (disassemble_data): Do not ignore sections without the
|
||||||
|
LOAD flag when disassemble_all is true. Only print a message
|
||||||
|
about disassembling a section if it contains some data.
|
||||||
|
|
||||||
* po/fr.po: Updated French translation.
|
* po/fr.po: Updated French translation.
|
||||||
|
|
||||||
2003-07-23 Nick Clifton <nickc@redhat.com>
|
2003-07-23 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
|
@ -1628,10 +1628,10 @@ disassemble_data (abfd)
|
||||||
asymbol *sym = NULL;
|
asymbol *sym = NULL;
|
||||||
long place = 0;
|
long place = 0;
|
||||||
|
|
||||||
if ((section->flags & SEC_LOAD) == 0
|
/* Sections that do not contain machine code are not normally disassembled. */
|
||||||
|| (! disassemble_all
|
if (! disassemble_all
|
||||||
&& only == NULL
|
&& only == NULL
|
||||||
&& (section->flags & SEC_CODE) == 0))
|
&& (section->flags & SEC_CODE) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (only != NULL)
|
if (only != NULL)
|
||||||
|
@ -1682,12 +1682,12 @@ disassemble_data (abfd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf (_("Disassembly of section %s:\n"), section->name);
|
|
||||||
|
|
||||||
datasize = bfd_get_section_size_before_reloc (section);
|
datasize = bfd_get_section_size_before_reloc (section);
|
||||||
if (datasize == 0)
|
if (datasize == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
printf (_("Disassembly of section %s:\n"), section->name);
|
||||||
|
|
||||||
data = (bfd_byte *) xmalloc ((size_t) datasize);
|
data = (bfd_byte *) xmalloc ((size_t) datasize);
|
||||||
|
|
||||||
bfd_get_section_contents (abfd, section, data, 0, datasize);
|
bfd_get_section_contents (abfd, section, data, 0, datasize);
|
||||||
|
|
Loading…
Add table
Reference in a new issue