if {[istarget "rx-*-*"]} then {
set target_machine -rx
}
+ if {[istarget "riscv*-*-*"]} then {
+ set target_machine -riscv
+ }
if {[istarget "v850*-*-*"]} then {
set target_machine -v850
}
if {! [istarget "h8300-*-*"]} then {
# The h8300 port issues a warning message for
# new sections created without atrributes.
- if { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
- run_elf_list_test "section2" "$target_machine" "-al -mx86-used-note=no" "-s" ""
- } {
- run_elf_list_test "section2" "$target_machine" "-al" "-s" ""
+ case $target_triplet in {
+ { i*86-*-* x86_64-*-* } {
+ run_elf_list_test "section2" "$target_machine" "-al -mx86-used-note=no" "-s" ""
+ }
+ { riscv*-*-* } {
+ run_elf_list_test "section2" "$target_machine" "-al -march-attr" "-s" ""
+ }
+ default {
+ run_elf_list_test "section2" "$target_machine" "-al" "-s" ""
+ }
}
}
run_dump_test "section3"