From: H.J. Lu Date: Thu, 27 Feb 2025 00:19:29 +0000 (+0800) Subject: x86-64: Pass -z separate-code to ld for -z mark-plt tests X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c44400b6ad8abe1ea1682959523e9574963a2956;p=thirdparty%2Fbinutils-gdb.git x86-64: Pass -z separate-code to ld for -z mark-plt tests Pass -z separate-code to ld for -z mark-plt tests to fix: FAIL: ld-x86-64/mark-plt-1a FAIL: ld-x86-64/mark-plt-1b FAIL: ld-x86-64/mark-plt-1c FAIL: ld-x86-64/mark-plt-1d FAIL: ld-x86-64/mark-plt-1a-x32 FAIL: ld-x86-64/mark-plt-1b-x32 FAIL: ld-x86-64/mark-plt-1c-x32 FAIL: ld-x86-64/mark-plt-1d-x32 when binutils is configured with --disable-separate-code. * ld-x86-64/mark-plt-1a-x32.d: Pass -z separate-code to ld. * ld-x86-64/mark-plt-1a.d: Likewise. * ld-x86-64/mark-plt-1b-x32.d: Likewise. * ld-x86-64/mark-plt-1b.d: Likewise. * ld-x86-64/mark-plt-1c-x32.d: Likewise. * ld-x86-64/mark-plt-1c.d: Likewise. * ld-x86-64/mark-plt-1d-x32.d: Likewise. * ld-x86-64/mark-plt-1d.d: Likewise. Signed-off-by: H.J. Lu --- diff --git a/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d index 4bef117dd0c..bcff5a142c7 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt --no-rosegment +#ld: -melf32_x86_64 -shared -z mark-plt -z separate-code --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1a.d b/ld/testsuite/ld-x86-64/mark-plt-1a.d index f6b246ef230..f2feb065e6f 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1a.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1a.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt --no-rosegment +#ld: -melf_x86_64 -shared -z mark-plt -z separate-code --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d index d105768bed3..703102454d6 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt --hash-style=both --no-rosegment +#ld: -melf32_x86_64 -shared -z mark-plt -z separate-code --hash-style=both --no-rosegment #objdump: -dw #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1b.d b/ld/testsuite/ld-x86-64/mark-plt-1b.d index 9af69fdbbb2..721b83aa504 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1b.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1b.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt --hash-style=both --no-rosegment +#ld: -melf_x86_64 -shared -z mark-plt -z separate-code --hash-style=both --no-rosegment #objdump: -dw #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d index 6ea71a1e7f8..7a8453efab7 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt --no-rosegment +#ld: -melf32_x86_64 -shared -z mark-plt -z separate-code -z ibtplt --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1c.d b/ld/testsuite/ld-x86-64/mark-plt-1c.d index 1713c8863f8..91721403831 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1c.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1c.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt --no-rosegment +#ld: -melf_x86_64 -shared -z mark-plt -z separate-code -z ibtplt --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d index 0e709d6306e..82642056bfc 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both --no-rosegment +#ld: -melf32_x86_64 -shared -z mark-plt -z separate-code -z ibtplt --hash-style=both --no-rosegment #objdump: -dw #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1d.d b/ld/testsuite/ld-x86-64/mark-plt-1d.d index 1ec9a9cacb4..a4155b2e067 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1d.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1d.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both --no-rosegment +#ld: -melf_x86_64 -shared -z mark-plt -z separate-code -z ibtplt --hash-style=both --no-rosegment #objdump: -dw #...