From: Alan Modra Date: Mon, 21 Oct 2002 02:23:25 +0000 (+0000) Subject: * objdump.c (dump_data): Correct addr_offset for opb != 1. X-Git-Tag: binutils-2_13_1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e473d261914231ce7c4ea96f7ff4914b98e0385d;p=thirdparty%2Fbinutils-gdb.git * objdump.c (dump_data): Correct addr_offset for opb != 1. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 373b3c910d7..110f3ab3e2d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2002-10-21 Svein E. Seldal + + * objdump.c (dump_data): Correct addr_offset for opb != 1. + 2002-09-23 Daniel Jacobowitz Merge from mainline: @@ -33,7 +37,7 @@ * po/fr.po: Updated French translation. 2002-07-24 Nick Clifton - + * po/es.po: Updated Spanish translation. 2002-07-23 Daniel Jacobowitz @@ -151,7 +155,7 @@ 2002-06-18 Elias Athanasopoulos * nm.c (print_size_symbols): Remove assignment, which makes - the symbol's size equal to its value when --size-sort is + the symbol's size equal to its value when --size-sort is used. 2002-06-18 Dave Brolley @@ -211,7 +215,7 @@ DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf. 2002-06-07 Elias Athanasopoulos - + * nm.c: When computing size of symbols for an ELF target use the internal size field. @@ -428,8 +432,8 @@ bfd_find_nearest_line is non-NULL. 2002-04-25 Elena Zannoni - - * readelf.c (get_AT_name): Handle DW_AT_GNU_vector. + + * readelf.c (get_AT_name): Handle DW_AT_GNU_vector. 2002-04-24 Christian Groessler @@ -455,11 +459,11 @@ 2002-04-15 Eric Kohl - * rcparse.y: Allow two to five parameter in FONT statement of + * rcparse.y: Allow two to five parameter in FONT statement of DIALOGEX resources. * resbin.c (bin_to_res_dialog): Fixed read/write code for dialogex resource data. - (res_to_bin_dialog): Likewise. + (res_to_bin_dialog): Likewise. * windres.h: Added misssing charset variable to dialog_ex structure. @@ -469,7 +473,7 @@ 2002-04-09 Bernd Herd - * rcparse.y: CLASS definitions in DIALOG resources + * rcparse.y: CLASS definitions in DIALOG resources are quoted. Fix typo in BEDIT warning. Don't add default dialog style when explicit style specified. @@ -582,10 +586,10 @@ 2002-02-18 Timothy Daly - * readelf.c (dump_relocations): Display 2nd and 3rd reloc - types for 64-bit MIPS. Narrow some fields for 80-char + * readelf.c (dump_relocations): Display 2nd and 3rd reloc + types for 64-bit MIPS. Narrow some fields for 80-char output. - (dump_relocations): Change spelling from 'unrecognised' + (dump_relocations): Change spelling from 'unrecognised' to 'unrecognized'. (decode_ARM_machine_flags): Likewise. (parse_args): Likewise. @@ -712,7 +716,7 @@ (main): Accept -H as an alias for --help. * objcopy.c (strip_main): Accept -H as an alias for --help. * objdump.c (main): Accept -v as an alias for --verbose. - * readelf.c (usage): Adjust format to match style used in + * readelf.c (usage): Adjust format to match style used in other binutils. * size.c (usage): Update text to provide verbose description of the command line options. @@ -764,9 +768,9 @@ 2002-01-15 Nick Clifton * objcopy.c (copy_usage): Use "options" instead of "switches". - (strip_usage): Use "options" instead of "switches". + (strip_usage): Use "options" instead of "switches". * doc/binutils.texi (dlltool): Refer to "options" instead of - "switches". + "switches". 2002-01-14 Richard Earnshaw @@ -1367,9 +1371,9 @@ 2001-08-03 John Healy - Patch suggested by Frank Eigler . - * objdump.c (disassemble_data): Fill in section member of the - disasm_info structure. + Patch suggested by Frank Eigler . + * objdump.c (disassemble_data): Fill in section member of the + disasm_info structure. 2001-08-03 Tom Walsh @@ -1387,18 +1391,18 @@ 2001-07-31 Nick Clifton - * objcopy.c: Fix formatting. - (section_rename): New structure. - (OPTION_RENAME_SECTION): New switch. - (copy_usage): Document new switch. - (add_section_rename): New function: Add a node to the section - rename list. - (find_section_rename): New function: Find the new name and - flags for a section. - (setup_section): Call find_section_name to determine the name - of the output section. - (copy_main): Handle OPTION_RENAME_SECTION. - * binutils.texi: Document new switch. + * objcopy.c: Fix formatting. + (section_rename): New structure. + (OPTION_RENAME_SECTION): New switch. + (copy_usage): Document new switch. + (add_section_rename): New function: Add a node to the section + rename list. + (find_section_rename): New function: Find the new name and + flags for a section. + (setup_section): Call find_section_name to determine the name + of the output section. + (copy_main): Handle OPTION_RENAME_SECTION. + * binutils.texi: Document new switch. * NEWS: Mention new switch. 2001-07-30 Nick Clifton @@ -1562,23 +1566,23 @@ 2001-06-18 H.J. Lu & Nick Clifton - * Makefile.am: Move documentation into doc subdirectory. - * Makefile.in: Regenerated. + * Makefile.am: Move documentation into doc subdirectory. + * Makefile.in: Regenerated. * binutils.texi: Move into doc subdirectory. - * addr2line.1: Removed. - * ar.1: Likewise. - * dlltool.1: Likewise. - * nlmconv.1: Likewise. - * nm.1: Likewise. - * objcopy.1: Likewise. - * objdump.1: Likewise. - * ranlib.1: Likewise. - * readelf.1: Likewise. - * size.1: Likewise. - * strings.1: Likewise. - * strip.1: Likewise. - * windres.1: Likewise. - * cxxfilt.man: Likewise. + * addr2line.1: Removed. + * ar.1: Likewise. + * dlltool.1: Likewise. + * nlmconv.1: Likewise. + * nm.1: Likewise. + * objcopy.1: Likewise. + * objdump.1: Likewise. + * ranlib.1: Likewise. + * readelf.1: Likewise. + * size.1: Likewise. + * strings.1: Likewise. + * strip.1: Likewise. + * windres.1: Likewise. + * cxxfilt.man: Likewise. * doc: New Directory. * doc/Makefile.am: New file. * doc/Makefile.in: Generate. @@ -1646,7 +1650,7 @@ 2001-04-27 Johan Rydberg - * NEWS: Announce support for OpenRISC. + * NEWS: Announce support for OpenRISC. 2001-04-17 Danny Smith diff --git a/binutils/objdump.c b/binutils/objdump.c index 2687b6e74a7..d09b6e5cc79 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 (" ");