We should use load_bias. This patch fixes MIPS NDK device exception test failures.
Change-Id: I4b718c36666e66062c1f13e4deea1ec7a7951c54
This commit is contained in:
parent
c079dfe415
commit
c5db969aa4
@ -1928,12 +1928,12 @@ static unsigned __linker_init_post_relocation(unsigned **elfdata, unsigned linke
|
|||||||
preloads[i]->CallConstructors();
|
preloads[i]->CallConstructors();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*After the link_image, the si->base is initialized.
|
/*After the link_image, the si->load_bias is initialized.
|
||||||
*For so lib, the map->l_addr will be updated in notify_gdb_of_load.
|
*For so lib, the map->l_addr will be updated in notify_gdb_of_load.
|
||||||
*We need to update this value for so exe here. So Unwind_Backtrace
|
*We need to update this value for so exe here. So Unwind_Backtrace
|
||||||
*for some arch like x86 could work correctly within so exe.
|
*for some arch like x86 could work correctly within so exe.
|
||||||
*/
|
*/
|
||||||
map->l_addr = si->base;
|
map->l_addr = si->load_bias;
|
||||||
si->CallConstructors();
|
si->CallConstructors();
|
||||||
|
|
||||||
#if TIMING
|
#if TIMING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user