diff options
author | Alan Modra <amodra@gmail.com> | 2020-12-01 10:27:44 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-12-01 11:26:58 +1030 |
commit | 56af5a30b8efa34ce30f7d93da7dc981dda82f61 (patch) | |
tree | e77775193b512ecaec7f0777c2890a83b823bfc6 /ld | |
parent | 5160d0f323d47031cb73c39a4dbd31d8976b4c8e (diff) | |
download | gdb-56af5a30b8efa34ce30f7d93da7dc981dda82f61.zip gdb-56af5a30b8efa34ce30f7d93da7dc981dda82f61.tar.gz gdb-56af5a30b8efa34ce30f7d93da7dc981dda82f61.tar.bz2 |
tic6x elf testsuite fix
* testsuite/ld-elf/elf.exp: Set ASFLAGS for tic6x.
* testsuite/ld-elf/reloc-discard.d: Remove tic6x xfail.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/reloc-discard.d | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 7e09a2f..73d0a98 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,10 @@ 2020-12-01 Alan Modra <amodra@gmail.com> + * testsuite/ld-elf/elf.exp: Set ASFLAGS for tic6x. + * testsuite/ld-elf/reloc-discard.d: Remove tic6x xfail. + +2020-12-01 Alan Modra <amodra@gmail.com> + * testsuite/ld-elf/pr26979a.s, * testsuite/ld-elf/pr26979b.s, * testsuite/ld-elf/pr26979c.s, diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 6e61c7f..e08a6f5 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 8d710f4..dede884 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. |