Revert pr29072 lto test changes
authorAlan Modra <amodra@gmail.com>
Tue, 26 Apr 2022 23:39:41 +0000 (09:09 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 27 Apr 2022 02:43:29 +0000 (12:13 +0930)
Revert commit 65daf5bed6 testsuite changes in ld-plugin/.  -z isn't
supported for non-ELF targets, and isn't needed since we now prune the
exec stack warning (commit 333cd559ba).

PR 29072

ld/testsuite/ld-plugin/lto-3r.d
ld/testsuite/ld-plugin/lto-5r.d
ld/testsuite/ld-plugin/lto.exp

index ce9562393d263ec987c147276cb174e4a46a03e0..fd1bfd268676d36bc30451d0275eda64007050fd 100644 (file)
@@ -1,4 +1,4 @@
-#ld: -r tmpdir/lto-3b.o -z noexecstack
+#ld: -r tmpdir/lto-3b.o
 #source: dummy.s
 #nm: -p
 
index dba30bfd33430836553e025353af89ddcf0c6c36..c35e2bc338d4bf1f9a298e1cb906f7b20bc1968f 100644 (file)
@@ -1,4 +1,4 @@
-#ld: -r tmpdir/lto-5a.o tmpdir/lto-5b.o -z noexecstack
+#ld: -r tmpdir/lto-5a.o tmpdir/lto-5b.o
 #source: dummy.s
 #nm: -p
 
index 33af6c45a412eb729ae6f493990633a226767727..f4ea1d48533fb48c0f8464e21bae9c47af7b0e98 100644 (file)
@@ -127,7 +127,7 @@ set lto_link_tests [list \
    "" "-flto -O2 $lto_fat $NOSANITIZE_CFLAGS" \
    {pr12758b.c} {} "libpr12758.a"] \
   [list "PR ld/12758" \
-   "$NOPIE_LDFLAGS $NOSANITIZE_CFLAGS -O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12758a.o -Wl,--start-group tmpdir/libpr12758.a -Wl,--end-group -z noexecstack" \
+   "$NOPIE_LDFLAGS $NOSANITIZE_CFLAGS -O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12758a.o -Wl,--start-group tmpdir/libpr12758.a -Wl,--end-group" \
    "$NOSANITIZE_CFLAGS" \
    {dummy.c} {} "pr12758.exe"] \
   [list "Build libpr13183.a" \
@@ -901,7 +901,7 @@ run_cc_link_tests $lto_link_symbol_tests
 
 run_ld_link_tests [list \
   [list "PR ld/19317 (2)" \
-   "-r tmpdir/pr19317.o -z noexecstack" "" "" \
+   "-r tmpdir/pr19317.o" "" "" \
    {dummy.s} {} "pr19317-r.o"] \
 ]