Add module base to main executable's ARM_exidx.

BUG:6697872

Change-Id: I448f4b86397307086231776da38a7af334a75fe5
This commit is contained in:
Evgeniy Stepanov
2012-06-22 14:52:52 +04:00
parent 63d0ceec75
commit 20bc061dc7

View File

@@ -1727,7 +1727,7 @@ static int soinfo_link_image(soinfo *si, unsigned wr_offset)
if(phdr->p_type == PT_ARM_EXIDX) { if(phdr->p_type == PT_ARM_EXIDX) {
/* exidx entries (used for stack unwinding) are 8 bytes each. /* exidx entries (used for stack unwinding) are 8 bytes each.
*/ */
si->ARM_exidx = (unsigned *)phdr->p_vaddr; si->ARM_exidx = (unsigned *)(base + phdr->p_vaddr);
si->ARM_exidx_count = phdr->p_memsz / 8; si->ARM_exidx_count = phdr->p_memsz / 8;
} }
#endif #endif