Module Name: src Committed By: matt Date: Thu Apr 25 13:15:26 UTC 2013
Modified Files: src/libexec/ld.elf_so/arch/arm: find_exidx.c Log Message: Use relocbase, not mapbase. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/libexec/ld.elf_so/arch/arm/find_exidx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/libexec/ld.elf_so/arch/arm/find_exidx.c diff -u src/libexec/ld.elf_so/arch/arm/find_exidx.c:1.1 src/libexec/ld.elf_so/arch/arm/find_exidx.c:1.2 --- src/libexec/ld.elf_so/arch/arm/find_exidx.c:1.1 Wed Apr 24 22:32:29 2013 +++ src/libexec/ld.elf_so/arch/arm/find_exidx.c Thu Apr 25 13:15:26 2013 @@ -29,7 +29,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: find_exidx.c,v 1.1 2013/04/24 22:32:29 matt Exp $"); +__RCSID("$NetBSD: find_exidx.c,v 1.2 2013/04/25 13:15:26 matt Exp $"); #endif /* not lint */ #include "debug.h" @@ -62,7 +62,7 @@ __gnu_Unwind_Find_exidx(_Unwind_Ptr pc, * need to see if the address matches a PT_LOAD section. */ if (obj != NULL && obj->exidx_start != NULL) { - va -= (vaddr_t)obj->mapbase; + va -= (vaddr_t)obj->relocbase; const Elf_Phdr *ph = obj->phdr; const Elf_Phdr * const phlimit = ph + obj->phsize / sizeof(*ph); for (; ph < phlimit; ph++) {