From 9a267ae298e5e208f05f0e5089530697f0226300 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 27 Oct 2003 09:18:17 +0000 Subject: Update. * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate ELF header. --- elf/sprof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') 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))) -- cgit v1.2.3