mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
Update.
* elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate ELF header.
This commit is contained in:
parent
11df531f59
commit
9a267ae298
@ -1,5 +1,8 @@
|
||||
2003-10-27 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
|
||||
ELF header.
|
||||
|
||||
* inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
|
||||
rest of line. We use getline which means this cannot happen.
|
||||
|
||||
|
@ -513,7 +513,7 @@ load_shobj (const char *name)
|
||||
/* Now we have to load the symbol table.
|
||||
|
||||
First load the section header table. */
|
||||
ehdr = (ElfW(Ehdr) *) map->l_addr;
|
||||
ehdr = (ElfW(Ehdr) *) map->l_map_start;
|
||||
|
||||
/* Make sure we are on the right party. */
|
||||
if (ehdr->e_shentsize != sizeof (ElfW(Shdr)))
|
||||
|
Loading…
Reference in New Issue
Block a user