summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/linux-x86.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-11 06:41:33 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-08-11 06:41:33 -0700
commitab9e342807d132182892de1be1a92d6e91a5c1da (patch)
treed32c6022a8a8bc94e13c72470e6ddaacd6aced8c /ld/testsuite/ld-elf/linux-x86.exp
parent1dc9e2d63e37839ff1768346b2e3f52e338baba5 (diff)
x86: Properly add X86_ISA_1_NEEDED property
Existing properties may be removed during property merging. We avoid adding X86_ISA_1_NEEDED property only if existing properties won't be removed. bfd/ PR ld/23428 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Don't add X86_ISA_1_NEEDED property only if existing properties won't be removed. ld/ PR ld/23428 * testsuite/ld-elf/dummy.s: New file. * testsuite/ld-elf/linux-x86.S: Add X86_FEATURE_1_AND property. * testsuite/ld-elf/linux-x86.exp: Add dummy.s to pr23428.
Diffstat (limited to 'ld/testsuite/ld-elf/linux-x86.exp')
-rw-r--r--ld/testsuite/ld-elf/linux-x86.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp
index 36217c6fb4..f6f5a80853 100644
--- a/ld/testsuite/ld-elf/linux-x86.exp
+++ b/ld/testsuite/ld-elf/linux-x86.exp
@@ -37,7 +37,7 @@ run_ld_link_exec_tests [list \
"Run PR ld/23428 test" \
"--no-dynamic-linker -z separate-code" \
"" \
- { linux-x86.S pr23428.c } \
+ { linux-x86.S pr23428.c dummy.s } \
"pr23428" \
"pass.out" \
"$NOPIE_CFLAGS -fno-asynchronous-unwind-tables" \