]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Update x86-64: Add -z mark-plt and -z nomark-plt
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Jan 2024 16:03:29 +0000 (08:03 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Jan 2024 16:03:29 +0000 (08:03 -0800)
Pass --hash-style=both to ld for -z mark-plt tests to support linker
configured with --enable-default-hash-style=gnu.

* testsuite/ld-x86-64/mark-plt-1b-x32.d: Pass --hash-style=both
to ld.
* testsuite/ld-x86-64/mark-plt-1b.d: Likewise.
* testsuite/ld-x86-64/mark-plt-1d-x32.d: Likewise.
* testsuite/ld-x86-64/mark-plt-1d.d: Likewise.

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-1d-x32.d
ld/testsuite/ld-x86-64/mark-plt-1d.d

index 74306a0d8d7a577a35f315b177f48b0c1625034f..848d45e1e43d5a0349d75b8a4bd33aa6b4ba3c6f 100644 (file)
@@ -1,6 +1,6 @@
 #source: mark-plt-1.s
 #as: --x32
-#ld: -melf32_x86_64 -shared -z mark-plt
+#ld: -melf32_x86_64 -shared -z mark-plt --hash-style=both
 #objdump: -dw
 
 #...
index dc046c031eb4b5ce93d089ec848e749517c363fc..a5c6931fd2ae4c5f22a1159bcbb459ead2afb813 100644 (file)
@@ -1,6 +1,6 @@
 #source: mark-plt-1.s
 #as: --64
-#ld: -melf_x86_64 -shared -z mark-plt
+#ld: -melf_x86_64 -shared -z mark-plt --hash-style=both
 #objdump: -dw
 
 #...
index 318ca1f09317c649c1cb4989daa5ee0b1fa85ba8..f08c99ea9cd0a3c37357ef275cdc66fecca2fdde 100644 (file)
@@ -1,6 +1,6 @@
 #source: mark-plt-1.s
 #as: --x32
-#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt
+#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both
 #objdump: -dw
 
 #...
index 2dd63bc10b7882afe8d6f0ce3cdcc3983f0b4e5b..9ca8d654324d4e2ea4c3f7d855a57f55acb0dba1 100644 (file)
@@ -1,6 +1,6 @@
 #source: mark-plt-1.s
 #as: --64
-#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt
+#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both
 #objdump: -dw
 
 #...