am 5b6346f6
: Merge "bionic: linker: Need update the map->l_addr for execution."
* commit '5b6346f6d5dca4022fe0044dd2807c19ac596788': bionic: linker: Need update the map->l_addr for execution.
This commit is contained in:
commit
0fa6279f39
1 changed files with 6 additions and 0 deletions
|
@ -1916,6 +1916,12 @@ sanitize:
|
|||
soinfo_call_constructors(preloads[i]);
|
||||
}
|
||||
|
||||
/*After the link_image, the si->base is initialized.
|
||||
*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
|
||||
*for some arch like x86 could work correctly within so exe.
|
||||
*/
|
||||
map->l_addr = si->base;
|
||||
soinfo_call_constructors(si);
|
||||
|
||||
#if ALLOW_SYMBOLS_FROM_MAIN
|
||||
|
|
Loading…
Reference in a new issue