aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/size.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/size.exp')
-rw-r--r--ld/testsuite/ld-scripts/size.exp19
1 files changed, 11 insertions, 8 deletions
diff --git a/ld/testsuite/ld-scripts/size.exp b/ld/testsuite/ld-scripts/size.exp
index ba08fe2..49405cb 100644
--- a/ld/testsuite/ld-scripts/size.exp
+++ b/ld/testsuite/ld-scripts/size.exp
@@ -16,19 +16,22 @@
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
#
-if [istarget "rs6000-*-aix*"] {
- # Target maps .text and .data to other sections.
+# AIX maps .text and .data to other sections.
+# a.out objdump displays the file header inside the text segment,
+# confusing run_dump_test.
+
+if {[istarget "rs6000-*-aix*"] || [is_aout_format]} {
+ unsupported size-1
+ unsupported size-2
return
}
run_dump_test size-1
-if ![is_elf_format] {
- return
-}
-
-if [istarget "mips*-*-*"] {
- # MIPS inserts a REGINFO PHDR
+# size-2 only works on ELF targets.
+# MIPS inserts a REGINFO PHDR
+if {![is_elf_format] || [istarget "mips*-*-*"]} {
+ unsupported size-2
return
}