From 0ac6fba0ecc9375477561f72df351a8ea84c899b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 13 Aug 2010 00:21:19 +0000 Subject: [PATCH] * dwarf.c (process_debug_info): Don't subtract section address when calculating location of cu abbrev within section. --- binutils/ChangeLog | 9 +++++++-- binutils/dwarf.c | 3 +-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d051895754b..3648503d503 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2010-08-13 Tom Tromey + + * dwarf.c (process_debug_info): Don't subtract section address + when calculating location of cu abbrev within section. + 2010-08-12 Michael Haubenwallner PR binutils/11742 @@ -57,7 +62,7 @@ 2010-06-29 Alan Modra - PR binutils/3166 + PR binutils/3166 * objcopy.c (is_strip_section): Revert 2006-09-05. (setup_section): Make SHT_GROUP section nobits. @@ -423,7 +428,7 @@ 2010-01-19 Daisuke Hatayama Alan Modra - * readelf.c (process_file_header): Handle e_phnum extension. + * readelf.c (process_file_header): Handle e_phnum extension. 2010-01-14 Tristan Gingold diff --git a/binutils/dwarf.c b/binutils/dwarf.c index f40bd41a2f6..84e22eb713e 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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); -- 2.30.2