Add -Wl,-z,notext to link with lld

* Upstream lld change in https://reviews.llvm.org/D30530.

Bug: 77270170
Test: make checkbuild
Change-Id: Idd0920eff3190c4074dbebd7eafbd3efee419bcf
diff --git a/Android.bp b/Android.bp
index 01e452a..8f1a4ab 100644
--- a/Android.bp
+++ b/Android.bp
@@ -349,6 +349,11 @@
                 "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 @@
     arch: {
         x86: {
             enabled: true,
+            // Allow text (read-only) relocations, which is the default
+            // for ld.bfd, but not lld.
+            ldflags: [
+                "-Wl,-z,notext",
+            ],
         },
     },
 }