[PATCH] ld/testsuite: add -z separate-code to sframe x86_64 tests
Clément Chigot
chigot@adacore.com
Mon Feb 24 14:59:30 GMT 2025
Those tests were generated by a linker having "-z separate-code" on by
default. However, being controlled by a configure option, it can be off
by default. Forcing the option as part of the tests ensures clean
results in both cases.
---
ld/testsuite/ld-x86-64/sframe-ibt-plt-1.d | 2 +-
ld/testsuite/ld-x86-64/sframe-plt-1.d | 2 +-
ld/testsuite/ld-x86-64/sframe-pltgot-1.d | 2 +-
ld/testsuite/ld-x86-64/sframe-pltgot-2.d | 2 +-
ld/testsuite/ld-x86-64/sframe-simple-1.d | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ld/testsuite/ld-x86-64/sframe-ibt-plt-1.d b/ld/testsuite/ld-x86-64/sframe-ibt-plt-1.d
index 26be4dfc6a0..f8682421245 100644
--- a/ld/testsuite/ld-x86-64/sframe-ibt-plt-1.d
+++ b/ld/testsuite/ld-x86-64/sframe-ibt-plt-1.d
@@ -1,7 +1,7 @@
#as: --gsframe
#source: ibt-plt-3.s
#objdump: --sframe=.sframe
-#ld: -shared -z ibtplt --no-rosegment
+#ld: -shared -z ibtplt --no-rosegment -z separate-code
#name: SFrame for IBT PLT .plt.sec
.*: +file format .*
diff --git a/ld/testsuite/ld-x86-64/sframe-plt-1.d b/ld/testsuite/ld-x86-64/sframe-plt-1.d
index 52bca18d4c0..2918ccba1eb 100644
--- a/ld/testsuite/ld-x86-64/sframe-plt-1.d
+++ b/ld/testsuite/ld-x86-64/sframe-plt-1.d
@@ -2,7 +2,7 @@
#source: sframe-foo.s
#source: sframe-bar.s
#objdump: --sframe=.sframe
-#ld: -shared --no-rosegment
+#ld: -shared --no-rosegment -z separate-code
#name: SFrame for plt0 and pltN
.*: +file format .*
diff --git a/ld/testsuite/ld-x86-64/sframe-pltgot-1.d b/ld/testsuite/ld-x86-64/sframe-pltgot-1.d
index 23ff5d52fec..6c47770c2b5 100644
--- a/ld/testsuite/ld-x86-64/sframe-pltgot-1.d
+++ b/ld/testsuite/ld-x86-64/sframe-pltgot-1.d
@@ -1,7 +1,7 @@
#as: --gsframe
#source: sframe-pltgot-1.s
#objdump: --sframe=.sframe
-#ld: -shared -z ibtplt --no-rosegment
+#ld: -shared -z ibtplt --no-rosegment -z separate-code
#name: SFrame for IBT .plt.got
.*: +file format .*
diff --git a/ld/testsuite/ld-x86-64/sframe-pltgot-2.d b/ld/testsuite/ld-x86-64/sframe-pltgot-2.d
index 7a99d12faa8..141be292230 100644
--- a/ld/testsuite/ld-x86-64/sframe-pltgot-2.d
+++ b/ld/testsuite/ld-x86-64/sframe-pltgot-2.d
@@ -1,7 +1,7 @@
#as: --gsframe
#source: sframe-pltgot-1.s
#objdump: --sframe=.sframe
-#ld: -shared --no-rosegment
+#ld: -shared --no-rosegment -z separate-code
#name: SFrame for .plt.got
.*: +file format .*
diff --git a/ld/testsuite/ld-x86-64/sframe-simple-1.d b/ld/testsuite/ld-x86-64/sframe-simple-1.d
index 7d88419226f..3effdbf0529 100644
--- a/ld/testsuite/ld-x86-64/sframe-simple-1.d
+++ b/ld/testsuite/ld-x86-64/sframe-simple-1.d
@@ -2,7 +2,7 @@
#source: sframe-foo.s
#source: sframe-bar.s
#objdump: --sframe=.sframe
-#ld: -shared --no-rosegment
+#ld: -shared --no-rosegment -z separate-code
#name: SFrame simple link
.*: +file format .*
--
2.34.1
More information about the Binutils
mailing list