]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86-64: Pass -z separate-code to ld for -z mark-plt tests
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Feb 2025 00:19:29 +0000 (08:19 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Feb 2025 00:19:29 +0000 (08:19 +0800)
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>
ld/testsuite/ld-x86-64/mark-plt-1a-x32.d
ld/testsuite/ld-x86-64/mark-plt-1a.d
ld/testsuite/ld-x86-64/mark-plt-1b-x32.d
ld/testsuite/ld-x86-64/mark-plt-1b.d
ld/testsuite/ld-x86-64/mark-plt-1c-x32.d
ld/testsuite/ld-x86-64/mark-plt-1c.d
ld/testsuite/ld-x86-64/mark-plt-1d-x32.d
ld/testsuite/ld-x86-64/mark-plt-1d.d

index 4bef117dd0c3c3471be165f2fbe6cd8751bac680..bcff5a142c70e83711702623a8086e698304183c 100644 (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
 
 #...
index f6b246ef23053f285301a42d41ee0971e4b64483..f2feb065e6f593c15f68ef1118506db8f860cf2c 100644 (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
 
 #...
index d105768bed3c2c128e1794ad6e729bcc2bb2e3f4..703102454d6a3fd219f85f82fd1dff6c738303dd 100644 (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
 
 #...
index 9af69fdbbb287518547939114c60118a8457f8da..721b83aa50494c92e126fdeb50d16d816cc00d02 100644 (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
 
 #...
index 6ea71a1e7f899667b7fa3e5bd4a1efa55d26f1fa..7a8453efab7fb9b261a2040565016b7504f0a136 100644 (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
 
 #...
index 1713c8863f844652214961647ac128ebecb3dfd0..9172140383116316189da612f349de9f47d755a9 100644 (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
 
 #...
index 0e709d6306e42cbf0fd46e4b18907567dccfe491..82642056bfcf0d6d1175d95ac9552eaaa6c67a4c 100644 (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
 
 #...
index 1ec9a9cacb47f3ab9f7adb222e0d7137695b21d4..a4155b2e0670fed84ea3f945f683160320896022 100644 (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
 
 #...