]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86-64: Skip -z mark-plt tests on MUSL
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 10 Jul 2024 23:46:21 +0000 (16:46 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 10 Jul 2024 23:50:52 +0000 (16:50 -0700)
Skip -z mark-plt tests, which are specific to glibc, on MUSL.

PR ld/31970
* ld/testsuite/ld-x86-64/x86-64.exp: Skip -z mark-plt tests on
MUSL.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/testsuite/ld-x86-64/x86-64.exp

index dddac4375e151b777354fe9aeea228aab36dd1f6..57a1cc44e2c0d4292549ba57167c298d7b15ce22 100644 (file)
@@ -2274,6 +2274,13 @@ run_dump_test "ibt-plt-3a-x32"
 run_dump_test "ibt-plt-3b-x32"
 run_dump_test "ibt-plt-3c-x32"
 run_dump_test "ibt-plt-3d-x32"
+
+# Skip -z mark-plt tests on MUSL.
+if { [istarget "x86_64-*-musl*"]} {
+    set ASFLAGS "$saved_ASFLAGS"
+    return
+}
+
 run_dump_test "mark-plt-1a"
 run_dump_test "mark-plt-1b"
 run_dump_test "mark-plt-1c"