Work around b/24465209, do not use clang lld
See longer explanation in b/80093890.
Clang lld does not generate expected DT_REL and DT_RELA tags
with --hash-style=both and --pack-dyn-relocs=android.
I am not sure about the extent of b/24465209, so
I would rather not to use lld for these .so files for now.
Bug: 80093890
Bug: 24465209
Test: build with USE_CLANG_LLD=true and run dlext.compat_elf_hash_and_relocation_tables
Change-Id: I94e9fe8d687daeadb0182ae26596ca11d3f8bd9b
diff --git a/libm/Android.bp b/libm/Android.bp
index c67e358..76bbca3 100644
--- a/libm/Android.bp
+++ b/libm/Android.bp
@@ -294,6 +294,7 @@
},
instruction_set: "arm",
ldflags: ["-Wl,--hash-style=both"],
+ use_clang_lld: false,
version_script: "libm.arm.map",
},
@@ -421,6 +422,7 @@
},
local_include_dirs: ["i387"],
ldflags: ["-Wl,--hash-style=both"],
+ use_clang_lld: false,
version_script: "libm.x86.map",
},