]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Fix testsuite failures under --enable-textrel-check=error
authorRoland McGrath <mcgrathr@google.com>
Mon, 15 Nov 2021 19:09:17 +0000 (11:09 -0800)
committerRoland McGrath <mcgrathr@google.com>
Mon, 15 Nov 2021 19:09:17 +0000 (11:09 -0800)
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.

ld/ChangeLog
ld/testsuite/ld-aarch64/dt_textrel.d
ld/testsuite/ld-aarch64/pr20402.d
ld/testsuite/ld-aarch64/pr22764.d

index c613b39804608b942b168d297c9dd0ecde11943c..c23af57d1cb467cc353038a749ec8f29d3b8e634 100644 (file)
@@ -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.
index 356fea8c400b1098321ea2c84550ad7874d24adb..ec823a5337df92cec0771d642b326609a7875694 100644 (file)
@@ -1,6 +1,6 @@
 #source: dt_textrel.s
 #target: [check_shared_lib_support]
-#ld: -shared
+#ld: -shared -z notext
 #readelf: -d
 #...
 .*TEXTREL.*
index 0c7ca17b83f91cbd05c5cc6be4395155775f7af1..d237ac78a9e79e63eeba41e67cae6f373364ecfc 100644 (file)
@@ -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:
index 4830d223cec9cbf7712efe03051910af6b4d484a..3980b7d9a408e2a2ff0a1bd25024adc4a3f26ed5 100644 (file)
@@ -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
 #...