diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-02-27 08:19:29 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-02-27 08:19:29 +0800 |
commit | c44400b6ad8abe1ea1682959523e9574963a2956 (patch) | |
tree | 06ef3899a4a6c3f275ca1384d5e50ec126abd4e3 | |
parent | 2d1374a7608d8191fbef7afaf5d47c319c7178e3 (diff) | |
download | binutils-c44400b6ad8abe1ea1682959523e9574963a2956.zip binutils-c44400b6ad8abe1ea1682959523e9574963a2956.tar.gz binutils-c44400b6ad8abe1ea1682959523e9574963a2956.tar.bz2 |
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 <hjl.tools@gmail.com>
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1a-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1b-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1c-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1c.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1d-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1d.d | 2 |
8 files changed, 8 insertions, 8 deletions
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 4bef117..bcff5a1 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 f6b246e..f2feb06 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 d105768..7031024 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 9af69fd..721b83a 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 6ea71a1..7a8453e 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 1713c88..9172140 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 0e709d6..8264205 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 1ec9a9c..a4155b2 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 #... |