diff options
author | Alan Modra <amodra@gmail.com> | 2002-10-21 02:18:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-10-21 02:18:58 +0000 |
commit | 8ab56b6f54e474d5dc034f89b3f6fc7b90b40ed6 (patch) | |
tree | b24e16533eb956e2a3a9d36bb6090e683c059852 | |
parent | 5fe39caef5ecbd0f21eee87f406cfb44a159c65e (diff) | |
download | fsf-binutils-gdb-8ab56b6f54e474d5dc034f89b3f6fc7b90b40ed6.zip fsf-binutils-gdb-8ab56b6f54e474d5dc034f89b3f6fc7b90b40ed6.tar.gz fsf-binutils-gdb-8ab56b6f54e474d5dc034f89b3f6fc7b90b40ed6.tar.bz2 |
* objdump.c (dump_data): Correct addr_offset for opb != 1.
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/objdump.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d1823c3..622ac84 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2002-10-21 Svein E. Seldal <Svein.Seldal@solidas.com> + + * objdump.c (dump_data): Correct addr_offset for opb != 1. + 2002-10-15 Alan Modra <amodra@bigpond.net.au> * bucomm.c (list_supported_targets): Use bfd_target_list. @@ -20,7 +24,7 @@ * readelf.c (display_debug_info): Ignore empty .rela.debug_info sections. Allow relocations against the absolute symbol. Don't use the value in compunit.cu_abbrev_offset if we found a RELA - relocation. + relocation. 2002-10-07 Gordon Chaffee <chaffee@netvmg.com> diff --git a/binutils/objdump.c b/binutils/objdump.c index 29b5081..73abc98 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2237,7 +2237,7 @@ dump_data (abfd) stop_offset = bfd_section_size (abfd, section) / opb; } for (addr_offset = start_offset; - addr_offset < stop_offset; addr_offset += onaline) + addr_offset < stop_offset; addr_offset += onaline / opb) { bfd_size_type j; @@ -2255,7 +2255,8 @@ dump_data (abfd) } printf (" "); - for (j = addr_offset; j < addr_offset * opb + onaline; j++) + for (j = addr_offset * opb; + j < addr_offset * opb + onaline; j++) { if (j >= stop_offset * opb) printf (" "); |