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>
This commit is contained in:
H.J. Lu 2025-02-27 08:19:29 +08:00
parent 2d1374a760
commit c44400b6ad
8 changed files with 8 additions and 8 deletions

View File

@ -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
#...

View File

@ -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
#...

View File

@ -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
#...

View File

@ -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
#...

View File

@ -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
#...

View File

@ -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
#...

View File

@ -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
#...

View File

@ -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
#...