]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/testsuite: add -z separate-code to sframe x86_64 tests
authorClément Chigot <chigot@adacore.com>
Mon, 24 Feb 2025 14:00:24 +0000 (15:00 +0100)
committerClément Chigot <chigot@adacore.com>
Wed, 26 Feb 2025 08:02:18 +0000 (09:02 +0100)
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
ld/testsuite/ld-x86-64/sframe-plt-1.d
ld/testsuite/ld-x86-64/sframe-pltgot-1.d
ld/testsuite/ld-x86-64/sframe-pltgot-2.d
ld/testsuite/ld-x86-64/sframe-simple-1.d

index 26be4dfc6a04896373837e168700e5e52951df9e..f8682421245bc6c260b6de2b192bb2e2a7787a37 100644 (file)
@@ -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 .*
index 52bca18d4c086d999236b65507dcf99a93877133..2918ccba1ebcc2df306429ca69d795395fa88195 100644 (file)
@@ -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 .*
index 23ff5d52fec9909113e45e98153d8a8b16fde250..6c47770c2b59cc865fdb7de2fb52d9b1309cf762 100644 (file)
@@ -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 .*
index 7a99d12faa80466161ded34ac3b5ff7dbaabc9db..141be2922302e68af44846b4cbc5cc56ba8f5b75 100644 (file)
@@ -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 .*
index 7d88419226f10ba866289eae51823a0214dbbe65..3effdbf05290d96c4dd378c12b40a2ea89587d6c 100644 (file)
@@ -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 .*