diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-03-10 18:55:25 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2018-03-29 11:03:36 -0700 |
commit | 50531906ebc0c00be9faeef47873bb0ff35eaac8 (patch) | |
tree | cf67ae9cae0a993fd5b238d302ca2ee31b03aaa8 | |
parent | 55f25ab21eff6755369570b5d1f4a1f58f3699e2 (diff) | |
download | linux-kselftest-50531906ebc0c00be9faeef47873bb0ff35eaac8.tar.gz |
Add -Wl,-z,notext to link with lldandroid-wear-p-preview-2android-p-preview-3android-p-preview-2android-o-mr1-iot-release-1.0.1android-o-mr1-iot-release-1.0.0android-o-mr1-iot-preview-8o-mr1-iot-preview-8
* Upstream lld change in https://reviews.llvm.org/D30530.
Bug: 77270170
Test: make checkbuild
Change-Id: Idd0920eff3190c4074dbebd7eafbd3efee419bcf
-rw-r--r-- | Android.bp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 01e452a422b1..8f1a4ab93ee7 100644 --- a/Android.bp +++ b/Android.bp @@ -349,6 +349,11 @@ cc_test { "tools/testing/selftests/x86/test_FISTTP.c", "tools/testing/selftests/x86/vdso_restorer.c", ], + // Allow text (read-only) relocations, which is the default + // for ld.bfd, but not lld. + ldflags: [ + "-Wl,-z,notext", + ], }, }, cflags: [ @@ -401,6 +406,11 @@ cc_test { arch: { x86: { enabled: true, + // Allow text (read-only) relocations, which is the default + // for ld.bfd, but not lld. + ldflags: [ + "-Wl,-z,notext", + ], }, }, } |