#as: --gdwarf-3
#readelf: -x.rodata -wlL
#name: DWARF2 5
-# The am33 cr16 crx ft32 mn10 msp430 nds32 rl78 and rx targets do not evaluate the subtraction of symbols at assembly time.
+# The am33 cr16 crx ft32 mn10 msp430 nds32 and rl78 targets do not evaluate the subtraction of symbols at assembly time.
# The mep target tries to relay code sections which breaks symbolic view computations.
# The riscv targets do not support the subtraction of symbols.
# The loongarch targets do not support the subtraction of symbols.
-#xfail: am3*-* cr16-* crx-* ft32*-* loongarch*-* mep-* mn10*-* msp430-* nds32*-* riscv*-* rl78-* rx-*
+#xfail: am3*-* cr16-* crx-* ft32*-* loongarch*-* mep-* mn10*-* msp430-* nds32*-* riscv*-* rl78-*
Hex dump of section '\.rodata':
0x00000000 01010201 010203 *.*
}
if {[istarget "rx-*-*"]} then {
set target_machine -rx
+ set dump_opts {{as -muse-conventional-section-names}}
}
if {[istarget "score-*-*"]} then {
set target_machine -score
run_dump_test "group0a"
run_dump_test "group0b"
run_dump_test "group0c"
- run_dump_test "group1a"
+ run_dump_test "group1a" $dump_opts
run_dump_test "group1b"
run_dump_test "group2"
run_dump_test "group3"
hppa64*-*-hpux* { }
riscv*-*-* { }
default {
- run_dump_test "groupautoa"
+ run_dump_test "groupautoa" $dump_opts
}
}
switch -glob $target_triplet {
run_elf_list_test "section2" "$target_machine" "$as_flags" "-s" ""
}
run_dump_test "section3"
- run_dump_test "section4"
+ run_dump_test "section4" $dump_opts
if {! [istarget "h8300-*-*"] && ! [istarget "rx-*-*"]} then {
# The h8300 port issues a warning message for
# new sections created without atrributes.
run_dump_test "section7"
run_dump_test "section8"
run_dump_test "section9"
- run_dump_test "section10"
- run_dump_test "section11"
+ run_dump_test "section10" $dump_opts
+ run_dump_test "section11" $dump_opts
run_dump_test "section12a"
run_dump_test "section12b"
run_dump_test "section13"
run_dump_test "section27"
run_dump_test "section28"
run_dump_test "section29"
- if { ![istarget "rx-*-*"] } then {
- run_dump_test "section30"
- } else {
- run_dump_test "section30" {{as -muse-conventional-section-names}}
- }
+ run_dump_test "section30" $dump_opts
run_dump_test "sh-link-zero"
run_dump_test "size"
run_dump_test "dwarf2-1" $dump_opts
run_dump_test "strtab"
- run_dump_test "bignums"
+ run_dump_test "bignums" $dump_opts
run_dump_test "section-symbol-redef"
run_dump_test "pr27228"
}
#as: --no-pad-sections
#readelf: -S --wide
#name: Disabling section padding
-# The RX port uses non standard section names.
-#xfail: loongarch*-* rx-*-*
-# LoongArch and RISC-V handles alignment via linker relaxation, so object files don't have
-# the expected alignment.
-#xfail: riscv*-*-*
#...
\[ .\] .text[ ]+PROGBITS[ ]+0+00 0+[0-9a-f]+ 0+0(1|4|5) 00 AX 0 0 16