tic6x elf testsuite fix
Alan Modra
amodra@gmail.com
Tue Dec 1 00:59:45 GMT 2020
Fixes the pr26979 tests for tic6x.
* testsuite/ld-elf/elf.exp: Set ASFLAGS for tic6x.
* testsuite/ld-elf/reloc-discard.d: Remove tic6x xfail.
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index 6e61c7fb13..e08a6f5feb 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -46,6 +46,10 @@ if { [istarget alpha*-*-* ] } {
set ASFLAGS "$ASFLAGS --defsym NO_SET=1"
}
+if [istarget "tic6x-*-*"] {
+ append ASFLAGS " -mpic -mpid=near"
+}
+
if { [istarget "*-*-solaris*"] } {
# Same for Solaris
set options_regsub(ld) {-melf_x86_64 -melf_x86_64_sol2}
diff --git a/ld/testsuite/ld-elf/reloc-discard.d b/ld/testsuite/ld-elf/reloc-discard.d
index 8d710f4f6b..dede8845e4 100644
--- a/ld/testsuite/ld-elf/reloc-discard.d
+++ b/ld/testsuite/ld-elf/reloc-discard.d
@@ -4,9 +4,6 @@
#target: [check_shared_lib_support]
#skip: powerpc64*-*-*
#source: reloc-discard.s
-#xfail: tic6x-*-*
-# Need to figure out how to pass `-fpic' for NDS32 or `-mpic -mpid=near'
-# for TI C6X targets to GAS for this test.
# PowerPC64 warns when discarding dynamic relocs, which is generally
# a good thing. See reloc-discard-warn.d test variant.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list