]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Fix test failures with --enable-textrel-check=error
authorSam James <sam@gentoo.org>
Tue, 1 Aug 2023 08:44:48 +0000 (09:44 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 1 Aug 2023 08:44:48 +0000 (09:44 +0100)
ld/testsuite/ld-i386/ifunc-textrel-1a.d
ld/testsuite/ld-i386/ifunc-textrel-1b.d
ld/testsuite/ld-i386/pr18801a.d
ld/testsuite/ld-i386/pr18801b.d
ld/testsuite/ld-x86-64/ifunc-textrel-1a.d
ld/testsuite/ld-x86-64/ifunc-textrel-1b.d
ld/testsuite/ld-x86-64/pr18801a.d
ld/testsuite/ld-x86-64/pr18801b.d

index 15f545db03d1866c8c51db480e1c2f8fc9346bd2..aad77e7d2303fff282f37c29b568ff8642bbd2b6 100644 (file)
@@ -1,4 +1,4 @@
 #source: ../ld-x86-64/ifunc-textrel-1.s
 #as: --32
-#ld: -m elf_i386 -pie
+#ld: -m elf_i386 -pie -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
index 6e4a67c48f07d30132043f4beeaa63baf89d2bb6..bf0f2ac5df924e5a217730482f86582af8bea373 100644 (file)
@@ -1,4 +1,4 @@
 #source: ../ld-x86-64/ifunc-textrel-1.s
 #as: --32
-#ld: -m elf_i386 -shared
+#ld: -m elf_i386 -shared -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
index 73cb5d17bebbc2c13c9d89a8137116b9945b7b6e..b1ef145a8825cea69864b305b89f44c5146e791b 100644 (file)
@@ -1,4 +1,4 @@
 #source: pr18801.s
 #as: --32
-#ld: -m elf_i386 -pie
+#ld: -m elf_i386 -pie -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
index 0bf7fb729cb73414825f02d9097927e2a9238d2d..983346ca248fc2504ca04526afb8bfbaafd3b3f7 100644 (file)
@@ -1,4 +1,4 @@
 #source: pr18801.s
 #as: --32
-#ld: -m elf_i386 -shared
+#ld: -m elf_i386 -shared -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
index 64a1e7021fdc7a63d3db17b1682dbadf20bb62de..667366091b9174700780c6d81096eb4a8d39afe9 100644 (file)
@@ -1,4 +1,4 @@
 #source: ifunc-textrel-1.s
 #as: --64 -defsym __x86_64__=1
-#ld: -m elf_x86_64 -pie
+#ld: -m elf_x86_64 -pie -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
index aeb31fdb3dc054d2002a73992f1edcfba38e5164..f7b8e02a72cca66be145685f975456089c3c3fc2 100644 (file)
@@ -1,4 +1,4 @@
 #source: ifunc-textrel-1.s
 #as: --64 -defsym __x86_64__=1
-#ld: -m elf_x86_64 -shared
+#ld: -m elf_x86_64 -shared -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
index 2b4159d3044c55dc38bc941208a9d09a2fd45d90..61f9d991185556001394b09239569bb8fda623c2 100644 (file)
@@ -1,4 +1,4 @@
 #source: pr18801.s
 #as: --64
-#ld: -melf_x86_64 -pie
+#ld: -melf_x86_64 -pie -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
index 34dab1aa6cba3cd20c1633daa128313a366646e9..967a339f90bbd51bd84074de3022eb5b0af0e6e7 100644 (file)
@@ -1,4 +1,4 @@
 #source: pr18801.s
 #as: --64
-#ld: -melf_x86_64 -shared
+#ld: -melf_x86_64 -shared -z notext
 #warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC