public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED PATCH] ld: Fix testsuite failures under --enable-textrel-check=error
@ 2021-11-15 19:13 Roland McGrath
  0 siblings, 0 replies; only message in thread
From: Roland McGrath @ 2021-11-15 19:13 UTC (permalink / raw)
  To: Binutils

Committed to trunk as obvious enough.

Thanks,
Roland

ld/
2021-11-15  Roland McGrath  <mcgrathr@google.com>

        * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext
in
        case ld was configured with --enable-textrel-check=error.
        * testsuite/ld-aarch64/pr22764.d: Likewise.
        * testsuite/ld-aarch64/pr20402.d: Likewise.

diff --git a/ld/testsuite/ld-aarch64/dt_textrel.d
b/ld/testsuite/ld-aarch64/dt_textrel.d
index 356fea8c400..ec823a5337d 100644
--- a/ld/testsuite/ld-aarch64/dt_textrel.d
+++ b/ld/testsuite/ld-aarch64/dt_textrel.d
@@ -1,6 +1,6 @@
 #source: dt_textrel.s
 #target: [check_shared_lib_support]
-#ld: -shared
+#ld: -shared -z notext
 #readelf: -d
 #...
 .*TEXTREL.*
diff --git a/ld/testsuite/ld-aarch64/pr20402.d
b/ld/testsuite/ld-aarch64/pr20402.d
index 0c7ca17b83f..d237ac78a9e 100644
--- a/ld/testsuite/ld-aarch64/pr20402.d
+++ b/ld/testsuite/ld-aarch64/pr20402.d
@@ -1,5 +1,5 @@
 #target: [check_shared_lib_support]
-#ld: -pie -defsym foo=0x1 -defsym bar=0x2
+#ld: -pie -defsym foo=0x1 -defsym bar=0x2 -z notext
 #readelf: -r

 Relocation section '\.rela\.dyn' at offset .* contains 2 entries:
diff --git a/ld/testsuite/ld-aarch64/pr22764.d
b/ld/testsuite/ld-aarch64/pr22764.d
index 4830d223cec..3980b7d9a40 100644
--- a/ld/testsuite/ld-aarch64/pr22764.d
+++ b/ld/testsuite/ld-aarch64/pr22764.d
@@ -1,6 +1,6 @@
 #source: pr22764.s
 #target: [check_shared_lib_support]
-#ld: -shared -T relocs.ld -defsym sym_abs1=0x1 -defsym sym_abs2=0x2
-defsym sym_abs3=0x3 -e0 --emit-relocs
+#ld: -shared -T relocs.ld -defsym sym_abs1=0x1 -defsym sym_abs2=0x2
-defsym sym_abs3=0x3 -e0 --emit-relocs -z notext
 #notarget: aarch64_be-*-*
 #objdump: -dr
 #...

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-15 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 19:13 [COMMITTED PATCH] ld: Fix testsuite failures under --enable-textrel-check=error Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).