summaryrefslogtreecommitdiff
path: root/tests/malloc_test.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2019-10-31 17:11:54 -0700
committerPeter Collingbourne <pcc@google.com>2019-10-31 17:21:17 -0700
commit36a56440e04cfddae7cc4fffdeadb53cf622a0cf (patch)
treec3e9aa98be9207f65c7dad41948beb0cd1c79e91 /tests/malloc_test.cpp
parentdd2ed970793f3119f43368e72784155227b7f7f7 (diff)
Pass -ffreestanding when compiling ifunc resolvers.
This flag prevents the compiler from inserting calls to libc functions in the ifunc resolver code, which will definitely cause problems if the libc function is itself an ifunc, but other calls that use the PLT may also be affected, since libc may not have been fully resolved yet. As it turns out, newer versions of clang will insert calls to memcmp in the body of the init_cpu_variant() function in arch-arm/dynamic_function_dispatch.cpp. Change-Id: I91f18d450835adc4b74565e9f48d5834f594a0c4
Diffstat (limited to 'tests/malloc_test.cpp')
0 files changed, 0 insertions, 0 deletions