+2001-05-17 H.J. Lu <hjl@gnu.org>
+
+ * elf/sprof.c (read_symbols): Move "++symtab" into the while loop.
+
2001-05-17 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Use
obstack_init (&ob_list);
/* Process the symbols. */
- if (shobj->symtab)
+ if (shobj->symtab != NULL)
{
const ElfW(Sym) *sym = shobj->symtab;
const ElfW(Sym) *sym_end
/* We assume that the string table follows the symbol table,
because there is no way in ELF to know the size of the
- dynamic symbol table!! */
+ dynamic symbol table without looking at the section headers. */
while ((void *) symtab < (void *) strtab)
{
if ((ELFW(ST_TYPE)(symtab->st_info) == STT_FUNC
obstack_free (&shobj->ob_sym, newsym);
}
}
- }
- ++symtab;
+ ++symtab;
+ }
}
sortsym = malloc (n * sizeof (struct known_symbol *));