From: Daniel Jacobowitz Date: Tue, 16 Feb 2010 20:28:06 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e76ab67fec44e588643739513ab99ad5c4449506;p=binutils-gdb.git gdb/ * symfile.c (addr_info_make_relative): Always use find_lowest_section. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1e703227e5c..b2694cefde0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-16 Daniel Jacobowitz + + * symfile.c (addr_info_make_relative): Always use + find_lowest_section. + 2010-02-16 Sami Wagiaalla * NEWS: Added entry for namespace fixes. diff --git a/gdb/symfile.c b/gdb/symfile.c index efa341dfe32..ca4d788f37a 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"),