From: Clément Chigot Date: Mon, 24 Feb 2025 14:00:24 +0000 (+0100) Subject: ld/testsuite: add -z separate-code to sframe x86_64 tests X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e0032993ab22f52fc66a26260ce0b489c1976b3;p=thirdparty%2Fbinutils-gdb.git ld/testsuite: add -z separate-code to sframe x86_64 tests 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. --- 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 .*