diff options
author | Jim Wilson <jimw@sifive.com> | 2018-03-06 12:01:04 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-03-06 12:01:50 -0800 |
commit | 770aa8a3d3da978a35520af5f205ab2d8a5371a0 (patch) | |
tree | cad4f7d1d9c153222489e313462a400e06e4b0d7 /ld/testsuite/ld-srec | |
parent | 9add17f218409f357d5ed8b831c777ac93f41ec4 (diff) | |
download | gdb-770aa8a3d3da978a35520af5f205ab2d8a5371a0.zip gdb-770aa8a3d3da978a35520af5f205ab2d8a5371a0.tar.gz gdb-770aa8a3d3da978a35520af5f205ab2d8a5371a0.tar.bz2 |
RISC-V: Disallow output format changes.
PR 22920
* emultempl/riscvelf.em (riscv_create_output_section_statements): New.
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): New.
* testsuite/ld-elf/pr21884.d (#notarget): Add riscv*-*-*.
* testsuite/ld-unique/pr21529.d (#notarget): Likewise.
* testsuite/ld-srec/srec.exp (run_srec_test): For riscv*-*-* target,
call setup_xfail.
Diffstat (limited to 'ld/testsuite/ld-srec')
-rw-r--r-- | ld/testsuite/ld-srec/srec.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp index fb6162f..7cda271 100644 --- a/ld/testsuite/ld-srec/srec.exp +++ b/ld/testsuite/ld-srec/srec.exp @@ -282,6 +282,12 @@ proc run_srec_test { test objs } { setup_xfail "msp430*-*-*" } + # The RISC-V target does not correctly process + # relocs when output format is not ELF. + if [istarget riscv*-*-*] { + setup_xfail "riscv*-*-*" + } + # SH64 targets cannot convert format in the linker # using the -oformat command line switch. if [istarget sh64*-*-elf] { |