diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 2000-02-14 15:27:28 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 2000-02-14 15:27:28 +0000 |
commit | 9f607d358b9823d4058eae249838f8d40042696e (patch) | |
tree | 652a0294d587c90b8222d9b94e2519f297941a5f /gdb/elfread.c | |
parent | 4cccf5050d3680f963eeae4b9589c2d3662ef833 (diff) | |
download | gdb-9f607d358b9823d4058eae249838f8d40042696e.tar.gz |
2000-02-14 Amit S. Kale <akale@veritas.com>
* elfread.c (elf_symtab_read): Move the use of sym to after where
it is set.
Checked in by Jim Kingdon <kingdon@redhat.com>
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index fd6720816a4..16bc23f8adb 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -293,10 +293,10 @@ 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 ())); - offset = ANOFFSET (objfile->section_offsets, sym->section->index); 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 |