mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
RISC-V: Fix riscv gas/ld testsuites failures for big endian.
Add riscv_choose_[ilp32|lp64]_emul, and use them to choose the correct linker script rather than set elf[32|64]lriscv directly. gas/ * testsuite/gas/riscv/li32.d: Accept bigriscv in addition to littleriscv. * testsuite/gas/riscv/li64.d: Likewise. * testsuite/gas/riscv/lla32.d: Likewise. * testsuite/gas/riscv/lla64.d: Likewise. * testsuite/gas/riscv/march-ok-g2.d: Likewise. * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise. * testsuite/gas/riscv/march-ok-g2p0.d: Likewise. * testsuite/gas/riscv/march-ok-i2p0.d: Likewise. * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise. * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise. * testsuite/gas/riscv/march-ok-two-nse.d: Likewise. ld/ * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added riscv_choose_[ilp32|lp64]_emul to choose the correct linker script. * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv. * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise. * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise. * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise. * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise. * testsuite/ld-riscv-elf/c-lui-2.d: Likewise. * testsuite/ld-riscv-elf/c-lui.d: Likewise. * testsuite/ld-riscv-elf/call-relax.d: Likewise. * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise. * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise. * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition to littleriscv. * testsuite/ld-riscv-elf/weakref64.d: Likewise.
This commit is contained in:

committed by
Nelson Chu

parent
fbc09e7af7
commit
f36ce378b4
@ -1,3 +1,18 @@
|
||||
2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
|
||||
|
||||
* testsuite/gas/riscv/li32.d: Accept bigriscv in addition
|
||||
to littleriscv.
|
||||
* testsuite/gas/riscv/li64.d: Likewise.
|
||||
* testsuite/gas/riscv/lla32.d: Likewise.
|
||||
* testsuite/gas/riscv/lla64.d: Likewise.
|
||||
* testsuite/gas/riscv/march-ok-g2.d: Likewise.
|
||||
* testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
|
||||
* testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
|
||||
* testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
|
||||
* testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
|
||||
* testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
|
||||
* testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
|
||||
|
||||
2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
|
||||
|
||||
* config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
|
||||
|
@ -1,7 +1,7 @@
|
||||
#as: -march=rv32ic -mabi=ilp32
|
||||
#objdump: -dr
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
@ -1,7 +1,7 @@
|
||||
#as: -march=rv64ic -mabi=lp64
|
||||
#objdump: -dr
|
||||
|
||||
.*: file format elf64-littleriscv
|
||||
.*: file format elf64-(little|big)riscv
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
@ -1,7 +1,7 @@
|
||||
#as: -march=rv32i -mabi=ilp32
|
||||
#objdump: -dr
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
@ -1,7 +1,7 @@
|
||||
#as: -march=rv64i -mabi=lp64
|
||||
#objdump: -dr
|
||||
|
||||
.*: file format elf64-littleriscv
|
||||
.*: file format elf64-(little|big)riscv
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
@ -2,4 +2,4 @@
|
||||
#objdump: -dr
|
||||
#source: empty.s
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
@ -2,4 +2,4 @@
|
||||
#objdump: -dr
|
||||
#source: empty.s
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
@ -2,4 +2,4 @@
|
||||
#objdump: -dr
|
||||
#source: empty.s
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
@ -2,4 +2,4 @@
|
||||
#objdump: -dr
|
||||
#source: empty.s
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
@ -2,4 +2,4 @@
|
||||
#objdump: -dr
|
||||
#source: empty.s
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
@ -2,4 +2,4 @@
|
||||
#objdump: -dr
|
||||
#source: empty.s
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
@ -2,4 +2,4 @@
|
||||
#objdump: -dr
|
||||
#source: empty.s
|
||||
|
||||
.*: file format elf32-littleriscv
|
||||
.*: file format elf32-(little|big)riscv
|
||||
|
Reference in New Issue
Block a user