+2000-02-14 Jim Kingdon <kingdon@redhat.com>
+
+ * elfread.c (elf_symtab_read): Revert changes by Amit S. Kale. A
+ sym->section->index number is not a SECT_OFF_* code.
+
Tue Feb 15 12:07:30 2000 Andrew Cagney <cagney@b1.cygnus.com>
* MAINTAINERS (write after approval): Add H.J. Lu.
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);
for (i = 0; i < number_of_symbols; i++)
{
sym = symbol_table[i];
- offset = ANOFFSET (objfile->section_offsets, sym->section->index);
if (sym->name == NULL || *sym->name == '\0')
{
/* Skip names that don't exist (shouldn't happen), or names