From 56af5a30b8efa34ce30f7d93da7dc981dda82f61 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 1 Dec 2020 10:27:44 +1030 Subject: [PATCH] tic6x elf testsuite fix * testsuite/ld-elf/elf.exp: Set ASFLAGS for tic6x. * testsuite/ld-elf/reloc-discard.d: Remove tic6x xfail. --- ld/ChangeLog | 5 +++++ ld/testsuite/ld-elf/elf.exp | 4 ++++ ld/testsuite/ld-elf/reloc-discard.d | 3 --- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7e09a2f2893..73d0a98b94d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2020-12-01 Alan Modra + + * testsuite/ld-elf/elf.exp: Set ASFLAGS for tic6x. + * testsuite/ld-elf/reloc-discard.d: Remove tic6x xfail. + 2020-12-01 Alan Modra * testsuite/ld-elf/pr26979a.s, diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 6e61c7fb13b..e08a6f5febd 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 8d710f4f6be..dede8845e48 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. -- 2.30.2