From: Jie Zhang Date: Wed, 10 Mar 2010 15:38:02 +0000 (-0500) Subject: gdb: adjust start address (why?) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd3115e159a05aadac3a36cc82a09281bbd376b2;p=thirdparty%2Fbinutils-gdb.git gdb: adjust start address (why?) Signed-off-by: Jie Zhang Signed-off-by: Mike Frysinger --- diff --git a/gdb/symfile.c b/gdb/symfile.c index eb27668f9d3..56a05b1dcbd 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -395,7 +395,8 @@ place_section (bfd *abfd, asection *sect, section_offsets &offsets, } while (!done); - offsets[gdb_bfd_section_index (abfd, sect)] = start_addr; + offsets[gdb_bfd_section_index (abfd, sect)] = + start_addr - bfd_section_vma (sect); lowest = start_addr + bfd_section_size (sect); }