* objdump.c (disassemble_section): If the computed next offset is

not beyond the current offset then just continue to the end.
This commit is contained in:
Nick Clifton
2009-03-05 16:31:50 +00:00
parent cc3f603a65
commit 84d7b001a6
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-03-05 Nick Clifton <nickc@redhat.com>
* objdump.c (disassemble_section): If the computed next offset is
not beyond the current offset then just continue to the end.
2009-03-04 Tristan Gingold <gingold@adacore.com>
* MAINTAINERS: Add myself as VMS maintainer.

View File

@ -1961,7 +1961,8 @@ disassemble_section (bfd *abfd, asection *section, void *info)
else
nextstop_offset = bfd_asymbol_value (nextsym) - section->vma;
if (nextstop_offset > stop_offset)
if (nextstop_offset > stop_offset
|| nextstop_offset <= addr_offset)
nextstop_offset = stop_offset;
/* If a symbol is explicitly marked as being an object