aboutsummaryrefslogtreecommitdiff
path: root/elf/sprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/sprof.c')
-rw-r--r--elf/sprof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/sprof.c b/elf/sprof.c
index 198b441f6f..38b21574bb 100644
--- a/elf/sprof.c
+++ b/elf/sprof.c
@@ -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)))