From: Alan Modra Date: Mon, 30 Nov 2020 23:57:44 +0000 (+1030) Subject: tic6x elf testsuite fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56af5a30b8efa34ce30f7d93da7dc981dda82f61;p=binutils-gdb.git tic6x elf testsuite fix * testsuite/ld-elf/elf.exp: Set ASFLAGS for tic6x. * testsuite/ld-elf/reloc-discard.d: Remove tic6x xfail. --- 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.