2000-01-17 Amit S. Kale <akale@veritas.com>

* 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  <kingdon@redhat.com>
This commit is contained in:
Jim Kingdon
2000-02-11 19:37:06 +00:00
parent f90b2b1da8
commit fa292f2358
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2000-01-17 Amit S. Kale <akale@veritas.com>
* 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 <kingdon@redhat.com>
2000-02-09 Mark Kettenis <kettenis@gnu.org>
* gnu-nat.c (proc_string): Make global.

View 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];