gdb/
authorDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 20:28:06 +0000 (20:28 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 20:28:06 +0000 (20:28 +0000)
* symfile.c (addr_info_make_relative): Always use
find_lowest_section.

gdb/ChangeLog
gdb/symfile.c

index 1e703227e5c415a7e0b8344428ee0e47128365db..b2694cefde035962fcd3cdef5bd0d5d36247410a 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * symfile.c (addr_info_make_relative): Always use
+       find_lowest_section.
+
 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
 
        * NEWS: Added entry for namespace fixes.
index efa341dfe32d7127180b73f0a52a116bbc6e9b28..ca4d788f37abe729009c357d4788e77478023a56 100644 (file)
@@ -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"),
This page took 0.028049 seconds and 4 git commands to generate.