aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-16 20:28:06 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-16 20:28:06 +0000
commite76ab67fec44e588643739513ab99ad5c4449506 (patch)
tree5e89f44ecc104b800028ca2d75497d1d9c6de9ee /gdb/symfile.c
parent7c5fe8687628c21f2353c231cf55da0ca68cb2f4 (diff)
downloadgdb-e76ab67fec44e588643739513ab99ad5c4449506.zip
gdb-e76ab67fec44e588643739513ab99ad5c4449506.tar.gz
gdb-e76ab67fec44e588643739513ab99ad5c4449506.tar.bz2
gdb/
* symfile.c (addr_info_make_relative): Always use find_lowest_section.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index efa341d..ca4d788 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -573,11 +573,9 @@ addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd)
int i;
/* Find lowest loadable section to be used as starting point for
- continguous sections. FIXME!! won't work without call to find
- .text first, but this assumes text is lowest section. */
- lower_sect = bfd_get_section_by_name (abfd, ".text");
- if (lower_sect == NULL)
- bfd_map_over_sections (abfd, find_lowest_section, &lower_sect);
+ continguous sections. */
+ lower_sect = NULL;
+ bfd_map_over_sections (abfd, find_lowest_section, &lower_sect);
if (lower_sect == NULL)
{
warning (_("no loadable sections found in added symbol-file %s"),