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 | |
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')
-rw-r--r-- | ld/testsuite/ld-elf/pr21884.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-srec/srec.exp | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-unique/pr21529.d | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elf/pr21884.d b/ld/testsuite/ld-elf/pr21884.d index 2645a87..e7eae56 100644 --- a/ld/testsuite/ld-elf/pr21884.d +++ b/ld/testsuite/ld-elf/pr21884.d @@ -2,7 +2,7 @@ #source: pr21884b.s #ld: -T pr21884.t #objdump: -b binary -s -#notarget: aarch64*-*-* arm*-*-* avr-*-* hppa-*-* ia64-*-* m68hc1*-*-* nds32*-*-* score-*-* v850-*-* +#notarget: aarch64*-*-* arm*-*-* avr-*-* hppa-*-* ia64-*-* m68hc1*-*-* nds32*-*-* riscv*-*-* score-*-* v850-*-* # Skip targets which can't change output format to binary. .*: file format binary 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] { diff --git a/ld/testsuite/ld-unique/pr21529.d b/ld/testsuite/ld-unique/pr21529.d index 655a9ef..11d47b8 100644 --- a/ld/testsuite/ld-unique/pr21529.d +++ b/ld/testsuite/ld-unique/pr21529.d @@ -1,6 +1,6 @@ #ld: --oformat binary -T pr21529.ld -e main #objdump: -s -b binary -#notarget: aarch64*-*-* arm*-*-* avr-*-* ia64-*-* m68hc1*-*-* nds32*-*-* score-*-* v850-*-* +#notarget: aarch64*-*-* arm*-*-* avr-*-* ia64-*-* m68hc1*-*-* nds32*-*-* riscv*-*-* score-*-* v850-*-* # Skip targets which can't change output format to binary. #pass |