[compiler-rt] r251360 - [asan] Switch back to BFD linker in asan/android tests.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 15:19:46 PDT 2015
Author: eugenis
Date: Mon Oct 26 17:19:46 2015
New Revision: 251360
URL: http://llvm.org/viewvc/llvm-project?rev=251360&view=rev
Log:
[asan] Switch back to BFD linker in asan/android tests.
We've switched to Gold earlier because of a minor misconfiguration
of the BFD linker in Android NDK. It turns out, Gold has much bigger
problems:
https://sourceware.org/bugzilla/show_bug.cgi?id=19163
(a bug is actually in the android runtime loader, but it means that
gold does not work with android L and even M).
Switching back to BFD and adding a workaround by explicitly linking
libm to all tests.
Modified:
compiler-rt/trunk/test/asan/lit.cfg
Modified: compiler-rt/trunk/test/asan/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/lit.cfg?rev=251360&r1=251359&r2=251360&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/lit.cfg (original)
+++ compiler-rt/trunk/test/asan/lit.cfg Mon Oct 26 17:19:46 2015
@@ -60,7 +60,7 @@ else:
# BFD linker in 64-bit android toolchains fails to find libm.so, which is a
# transitive shared library dependency (via asan runtime).
if config.android:
- extra_linkflags += ["-fuse-ld=gold"]
+ extra_linkflags += ["-lm"]
# Setup default compiler flags used with -fsanitize=address option.
# FIXME: Review the set of required flags and check if it can be reduced.
More information about the llvm-commits
mailing list