diff options
author | Ryan Prichard <rprichard@google.com> | 2018-05-30 22:32:17 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2018-05-31 17:04:52 -0700 |
commit | 742982d3a086473427e71089a6c9ba8df0c365e6 (patch) | |
tree | a713d5bdf5bd92c6f7ab91179be346e941666626 /libc/malloc_debug/malloc_debug.cpp | |
parent | fe55c272adf89ecf14c5aa068119bfadf2c28457 (diff) |
Avoid post-reloc GOT usage in __linker_init
A GOT lookup happening prior to soinfo::link_image causes a segfault. With
-O0, the compiler moves GOT lookups from after __linker_init's link_image
call to the start of __linker_init.
Rename the existing __linker_init_post_relocation to linker_main, then
extract the existing post-link_image code to a new
__linker_init_post_relocation function.
Bug: http://b/80503879
Test: /data/nativetest64/bionic-unit-tests/bionic-unit-tests
Test: manual
Change-Id: If8a470f8360acbe35e2a308b0fbff570de6131cf
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions