diff options
author | Dimitry Ivanov <dimitry@google.com> | 2016-11-21 12:50:38 -0800 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2016-12-14 11:16:21 -0800 |
commit | ac4bd2f79316e8ee79e9a69463e5d12d0f792aad (patch) | |
tree | 4588bf97c4a1e218521094fb185c58a7f8c12562 /libdl | |
parent | f27e97956d6705c09f38442423f5e115cbe55f0f (diff) | |
download | bionic-ac4bd2f79316e8ee79e9a69463e5d12d0f792aad.tar.gz |
Add test for elf-hash and packed relocations
This adds CTS test for system libraries to support
workaround for http://b/24465209: some apps require
a subset of system libs to have elf-hash and not to
use packed relocations.
Bug: http://b/32917341
Bug: http://b/24465209
Test: bionic-unit-tests --gtest_filter=Dl*:dl*
Change-Id: Ia0bc28506b1f1f97d4cf902d73b0769e2815fed3
Diffstat (limited to 'libdl')
-rw-r--r-- | libdl/Android.bp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libdl/Android.bp b/libdl/Android.bp index e9b79d79c..a0aeeffb5 100644 --- a/libdl/Android.bp +++ b/libdl/Android.bp @@ -21,6 +21,7 @@ cc_library { arch: { arm: { version_script: "libdl.arm.map", + ldflags: ["-Wl,--hash-style=both"], }, arm64: { version_script: "libdl.arm64.map", @@ -32,7 +33,10 @@ cc_library { version_script: "libdl.mips64.map", }, x86: { - ldflags: ["-Wl,--exclude-libs=libgcc_eh.a"], + ldflags: [ + "-Wl,--exclude-libs=libgcc_eh.a", + "-Wl,--hash-style=both", + ], version_script: "libdl.x86.map", }, x86_64: { |