Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2001-05-17  H.J. Lu  <hjl@gnu.org>

	* elf/sprof.c (read_symbols): Move "++symtab" into the while loop.
  • Loading branch information
Ulrich Drepper committed May 17, 2001
1 parent 8df6c27 commit 8d88a16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
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
Expand Down
8 changes: 4 additions & 4 deletions elf/sprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ read_symbols (struct shobj *shobj)
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
Expand Down Expand Up @@ -965,7 +965,7 @@ read_symbols (struct shobj *shobj)

/* 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
Expand Down Expand Up @@ -1006,9 +1006,9 @@ read_symbols (struct shobj *shobj)
obstack_free (&shobj->ob_sym, newsym);
}
}
}

++symtab;
++symtab;
}
}

sortsym = malloc (n * sizeof (struct known_symbol *));
Expand Down

0 comments on commit 8d88a16

Please sign in to comment.