aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-08-13 00:21:19 +0000
committerAlan Modra <amodra@gmail.com>2010-08-13 00:21:19 +0000
commit0ac6fba0ecc9375477561f72df351a8ea84c899b (patch)
treeeb275530d12673b975c716c2946b1649ac426be4 /binutils/dwarf.c
parent74f67560959c1ba65f6be4571d846b759522fcd5 (diff)
downloadgdb-0ac6fba0ecc9375477561f72df351a8ea84c899b.zip
gdb-0ac6fba0ecc9375477561f72df351a8ea84c899b.tar.gz
gdb-0ac6fba0ecc9375477561f72df351a8ea84c899b.tar.bz2
* dwarf.c (process_debug_info): Don't subtract section address
when calculating location of cu abbrev within section.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index f40bd41..84e22eb 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);