+ if {! [istarget "h8300-*-*"] && ! [istarget "rx-*-*"]} then {
+ # The h8300 port issues a warning message for
+ # new sections created without atrributes.
+ # The RX port does not complain about changing the attributes of the
+ # .data and .bss sections since it does not use those names.
+ run_elf_list_test "section5" "" "-al" "-SW" "| grep \" \\\\.test\\\[0-9\\\]\""
+ }
+ run_dump_test "struct"
+ if { ![istarget "alpha*-*-*"] } then {
+ # The alpha port uses .set for state, e.g. nomacro.
+ run_dump_test "symtab"
+ }
+ run_dump_test "symver"
+ run_dump_test "pr21661"
+ run_dump_test "pr14891"
+
+ # No indirect functions on non-GNU targets.
+ # The Visium and MSP set the ELF header's OSABI field to ELFOSABI_STANDALONE.
+ # The non-eabi ARM ports sets it to ELFOSABI_ARM.
+ # So for these targets we cannot include an IFUNC symbol type
+ # in the symbol type test.
+ # We also need to exclude targets that do not support unique objects.
+ if { [istarget "*-*-hpux*"]
+ || [istarget "arm*-*-*"]
+ || [istarget "msp*-*-*"]
+ || [istarget "visium-*-*"]
+ || ![supports_gnu_unique]
+ } then {
+ # hppa64 has a non-standard common directive
+ if { ![istarget "hppa64*-*-hpux*"] } then {
+ run_elf_list_test "type-noifunc" "" "" "-s" "| grep \"1 *\\\[FONTC\\\]\""
+ }
+ } else {
+ run_dump_test ifunc-1
+ run_elf_list_test "type" "" "" "-s" "| grep \"1 *\\\[FIONTCU\\\]\""
+ run_elf_list_test "type-2" "" "--warn" "-s" "| grep \"0 *\\\[FIONT\\\]\""
+ }
+
+ run_dump_test "section6"
+ run_dump_test "section7"
+ run_dump_test "section8"
+ run_dump_test "section9"
+ run_dump_test "section10"
+ run_dump_test "section11"
+ run_dump_test "section12a"
+ run_dump_test "section12b"
+ run_dump_test "section13"
+ run_dump_test "section14"
+ run_dump_test "dwarf2-1" $dump_opts
+ run_dump_test "dwarf2-2" $dump_opts
+ run_dump_test "dwarf2-3" $dump_opts
+ run_dump_test "dwarf2-4" $dump_opts
+ run_dump_test "dwarf2-5" $dump_opts
+ run_dump_test "dwarf2-6" $dump_opts
+ run_dump_test "dwarf2-7" $dump_opts
+ run_dump_test "dwarf2-8" $dump_opts
+ run_dump_test "dwarf2-9" $dump_opts
+ run_dump_test "dwarf2-10" $dump_opts
+ run_dump_test "dwarf2-11" $dump_opts
+ run_dump_test "dwarf2-12" $dump_opts
+ run_dump_test "dwarf2-13" $dump_opts
+ run_dump_test "dwarf2-14" $dump_opts
+ run_dump_test "dwarf2-15" $dump_opts
+ run_dump_test "dwarf2-16" $dump_opts
+ run_dump_test "dwarf2-17" $dump_opts
+ run_dump_test "dwarf2-18" $dump_opts
+ run_dump_test "dwarf2-19" $dump_opts
+ run_dump_test "bss"
+ run_dump_test "bad-bss"
+ run_dump_test "bad-section-flag"
+ run_dump_test "bad-size"
+ run_dump_test "bad-group"
+
+ run_dump_test "syms"
+
+ run_dump_test "missing-build-notes"
+
+ run_dump_test "common1"
+ run_dump_test "common2"
+
+ # hpux has a non-standard common directive.
+ if { ![istarget "*-*-hpux*"] } then {
+ run_dump_test "common3a"
+ run_dump_test "common3b"
+ run_dump_test "common4a"
+ run_dump_test "common4b"
+ run_dump_test "common5a"
+ run_dump_test "common5b"
+ run_dump_test "common5c"
+ run_dump_test "common5d"
+ }
+
+ run_dump_test "strtab"
+
+ run_dump_test "bignums"
+
+ load_lib gas-dg.exp
+ dg-init
+ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""
+ dg-finish