aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-03-10 18:55:25 -0800
committerChih-Hung Hsieh <chh@google.com>2018-03-29 11:03:36 -0700
commit50531906ebc0c00be9faeef47873bb0ff35eaac8 (patch)
treecf67ae9cae0a993fd5b238d302ca2ee31b03aaa8
parent55f25ab21eff6755369570b5d1f4a1f58f3699e2 (diff)
downloadlinux-kselftest-50531906ebc0c00be9faeef47873bb0ff35eaac8.tar.gz
* Upstream lld change in https://reviews.llvm.org/D30530. Bug: 77270170 Test: make checkbuild Change-Id: Idd0920eff3190c4074dbebd7eafbd3efee419bcf
-rw-r--r--Android.bp10
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",
+ ],
},
},
}