summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2019-01-23 17:56:24 -0800
committerPeter Collingbourne <pcc@google.com>2019-01-25 16:25:27 -0800
commit7a0f04cb8dbfa900ce5fedb4979b5358efc5dad9 (patch)
tree8c0eb6f10e030bccf38330cfa00b74b8bcf9af6d /libc/malloc_hooks/malloc_hooks.cpp
parent176d2fbcaefe4691b8fd7844f6cec8e7a1a22c76 (diff)
Implement ifunc support for static executables.
A static executable is almost entirely statically relocated by the linker, with the exception of IRELATIVE relocations, which must be resolved by libc by enumerating the relocations using the special linker-defined symbols __rela?_iplt_{start,end}. This patch implements ifunc support by enumerating the relocations in this way. Bug: 112482891 Test: /data/nativetest{,64}/bionic-unit-tests-static/bionic-unit-tests-static on walleye_hwasan-userdebug Change-Id: Ia5522a190da0b86e095b141d5d4e68dd7dd4b695
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions