-# Copyright (C) 2012-2019 Free Software Foundation, Inc.
+# Copyright (C) 2012-2020 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
&& ![istarget "am3*-*-*"]} then {
run_dump_test "ehopt0"
}
- case $target_triplet in {
- { m68k-*-* m68[03]??-*-* } {
+ switch -glob $target_triplet {
+ m68k-*-* -
+ m68[03]??-*-* {
run_dump_test "file" { { as "--defsym m68k=1" } }
}
- { mmix-*-* } {
+ mmix-*-* {
run_dump_test "file" { { as "--defsym mmix=1" } }
}
- { xtensa*-*-* } {
+ xtensa*-*-* {
run_dump_test "file" { { as "--rename-section file.s=file.c" } }
}
default {
run_dump_test "group1b"
run_dump_test "group2"
run_dump_test "group3"
- case $target_triplet in {
- { hppa64*-*-hpux* } { }
- { riscv*-*-* } { }
+ switch -glob $target_triplet {
+ hppa64*-*-hpux* { }
+ riscv*-*-* { }
default {
run_dump_test "groupautoa"
}
}
- case $target_triplet in {
- { hppa64*-*-hpux* } { }
- { riscv*-*-* } { }
- { xtensa*-*-* } { }
+ switch -glob $target_triplet {
+ hppa64*-*-hpux* { }
+ riscv*-*-* { }
+ xtensa*-*-* { }
default {
run_dump_test "groupautob"
}
}
- case $target_triplet in {
- { alpha*-*-* } { }
- { am3*-*-* } { }
- { *c54x*-*-* } { }
- { cr16*-*-* } { }
- { crx*-*-* } { }
- { h8300-*-* } { }
- { hppa*-*-* } { }
- { iq2000*-*-* } { }
- { mips*-*-* } { }
- { mn10200-*-* } { }
- { mn10300-*-* } { }
- { msp43*-*-* } { }
- { rl78-*-* } { }
- { riscv*-*-* } { }
- { rx-*-* } { }
+ switch -glob $target_triplet {
+ alpha*-*-* { }
+ am3*-*-* { }
+ *c54x*-*-* { }
+ cr16*-*-* { }
+ crx*-*-* { }
+ h8300-*-* { }
+ hppa*-*-* { }
+ iq2000*-*-* { }
+ mips*-*-* { }
+ mn10200-*-* { }
+ mn10300-*-* { }
+ msp43*-*-* { }
+ rl78-*-* { }
+ riscv*-*-* { }
+ rx-*-* { }
default {
# The next test can fail if the target does not convert fixups
# against ordinary symbols into relocations against section symbols.
# new sections created without atrributes.
if {! [istarget "h8300-*-*"]} then {
set as_flags "-al --generate-missing-build-notes=no"
- case $target_triplet in {
- { i*86-*-* x86_64-*-* } {
+ switch -glob $target_triplet {
+ i*86-*-* -
+ x86_64-*-* {
set as_flags "$as_flags -mx86-used-note=no"
}
- { riscv*-*-* } {
+ riscv*-*-* {
set as_flags "$as_flags -march-attr"
}
}
# 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_elf_list_test "section5" "" "-al -Z" "-SW" "| grep \" \\\\.test\\\[0-9\\\]\""
}
run_dump_test "struct"
if { ![istarget "alpha*-*-*"] } then {
}
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.
# 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 "arm*-*-*"]
+ || [istarget "mips*-*-*"]
+ || [istarget "msp*-*-*"]
|| [istarget "visium-*-*"]
|| ![supports_gnu_unique]
} then {
} 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 "section12b"
run_dump_test "section13"
run_dump_test "section14"
+ run_dump_test "section15"
+ run_dump_test "section16a"
+ run_dump_test "section16b"
+ run_dump_test "section17"
+ run_dump_test "section18"
+ run_dump_test "section19"
+ run_dump_test "section20"
+ run_dump_test "section21"
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-17" $dump_opts
run_dump_test "dwarf2-18" $dump_opts
run_dump_test "dwarf2-19" $dump_opts
+ run_dump_test "dwarf-5-file0" $dump_opts
+ run_dump_test "pr25917"
run_dump_test "bss"
run_dump_test "bad-bss"
run_dump_test "bad-section-flag"