]> Git Repo - binutils.git/commitdiff
2000-01-17 Amit S. Kale <[email protected]>
authorJim Kingdon <[email protected]>
Fri, 11 Feb 2000 19:37:06 +0000 (19:37 +0000)
committerJim Kingdon <[email protected]>
Fri, 11 Feb 2000 19:37:06 +0000 (19:37 +0000)
* elfread.c (elf_symtab_read): Use offset for the section in which a
symbol resides, instead of .text section for calculating address of a
symbol.
Checked in by Jim Kingdon  <[email protected]>

gdb/ChangeLog
gdb/elfread.c

index aa02f47510c6d3ebc9c4272d9a9111d140c1e43f..94add2b9505e7c9adf72a38cb06e2e323a8c18ad 100644 (file)
@@ -1,3 +1,10 @@
+2000-01-17  Amit S. Kale  <[email protected]>
+
+       * elfread.c (elf_symtab_read): Use offset for the section in which a
+       symbol resides, instead of .text section for calculating address of a
+       symbol.
+       Checked in by Jim Kingdon  <[email protected]>
+
 2000-02-09  Mark Kettenis  <[email protected]>
 
        * gnu-nat.c (proc_string): Make global.
index d63d16a30fabea9f6a1d7bc0c68064348731fc0a..fd6720816a43de9e28d1a3df566a33bb483a45a3 100644 (file)
@@ -293,8 +293,7 @@ elf_symtab_read (objfile, dynamic)
       if (number_of_symbols < 0)
        error ("Can't read symbols from %s: %s", bfd_get_filename (objfile->obfd),
               bfd_errmsg (bfd_get_error ()));
-      /* FIXME: Should use section specific offset, not SECT_OFF_TEXT. */
-      offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT);
+      offset = ANOFFSET (objfile->section_offsets, sym->section->index);
       for (i = 0; i < number_of_symbols; i++)
        {
          sym = symbol_table[i];
This page took 0.032881 seconds and 4 git commands to generate.