aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorRoland McGrath <mcgrathr@google.com>2021-11-15 11:09:17 -0800
committerRoland McGrath <mcgrathr@google.com>2021-11-15 11:09:17 -0800
commitd029b54d9c57232b812a32889b445f0db8958e0a (patch)
tree31e63ec731c6b4ddebd02332a147df052fe90a4f /ld
parent37989733d8a8fe6ea13a82ec22272255e0702938 (diff)
downloadgdb-d029b54d9c57232b812a32889b445f0db8958e0a.zip
gdb-d029b54d9c57232b812a32889b445f0db8958e0a.tar.gz
gdb-d029b54d9c57232b812a32889b445f0db8958e0a.tar.bz2
ld: Fix testsuite failures under --enable-textrel-check=error
ld/ * 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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/testsuite/ld-aarch64/dt_textrel.d2
-rw-r--r--ld/testsuite/ld-aarch64/pr20402.d2
-rw-r--r--ld/testsuite/ld-aarch64/pr22764.d2
4 files changed, 10 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c613b39..c23af57 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2021-10-25 Nick Alcock <nick.alcock@oracle.com>
* testsuite/ld-ctf/nonrepresentable-member.*: New test.
diff --git a/ld/testsuite/ld-aarch64/dt_textrel.d b/ld/testsuite/ld-aarch64/dt_textrel.d
index 356fea8..ec823a5 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 0c7ca17..d237ac7 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 4830d22..3980b7d 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
#...