diff options
author | Jie Zhang <jie@codesourcery.com> | 2010-03-10 10:38:02 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-11 01:44:13 +0700 |
commit | dd3115e159a05aadac3a36cc82a09281bbd376b2 (patch) | |
tree | 766cc87dbac79b3c5ce00934c96f62c8c27af5ea | |
parent | 4194556af51fe9c553bd491178e2de61a63b82a6 (diff) | |
download | gdb-dd3115e159a05aadac3a36cc82a09281bbd376b2.zip gdb-dd3115e159a05aadac3a36cc82a09281bbd376b2.tar.gz gdb-dd3115e159a05aadac3a36cc82a09281bbd376b2.tar.bz2 |
gdb: adjust start address (why?)
Signed-off-by: Jie Zhang <jie@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | gdb/symfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index eb27668..56a05b1 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); } |