* dwarf.c (process_debug_info): Don't subtract section address
authorAlan Modra <amodra@gmail.com>
Fri, 13 Aug 2010 00:21:19 +0000 (00:21 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 13 Aug 2010 00:21:19 +0000 (00:21 +0000)
when calculating location of cu abbrev within section.

binutils/ChangeLog
binutils/dwarf.c

index d051895754b3304db84183acc778e2835ebee3f0..3648503d503ca081a03d2cbd0fb816e70182250a 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-13  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf.c (process_debug_info): Don't subtract section address
+       when calculating location of cu abbrev within section.
+
 2010-08-12  Michael Haubenwallner  <haubi@gentoo.org>
 
        PR binutils/11742
@@ -57,7 +62,7 @@
 
 2010-06-29  Alan Modra  <amodra@gmail.com>
 
-       PR binutils/3166
+       PR binutils/3166
        * objcopy.c (is_strip_section): Revert 2006-09-05.
        (setup_section): Make SHT_GROUP section nobits.
 
 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
            Alan Modra <amodra@gmail.com>
 
-        * readelf.c (process_file_header): Handle e_phnum extension.
+       * readelf.c (process_file_header): Handle e_phnum extension.
 
 2010-01-14  Tristan Gingold  <gingold@adacore.com>
 
index f40bd41a2f6a9fdf0a1b22e14205e83661f97dc2..84e22eb713e911d25d9127c100aa93253492f5ac 100644 (file)
@@ -2077,8 +2077,7 @@ process_debug_info (struct dwarf_section *section,
       else
        process_abbrev_section
          ((unsigned char *) debug_displays [abbrev_sec].section.start
-          + compunit.cu_abbrev_offset
-           - debug_displays [abbrev_sec].section.address,
+          + compunit.cu_abbrev_offset,
           (unsigned char *) debug_displays [abbrev_sec].section.start
           + debug_displays [abbrev_sec].section.size);