aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/eh-group.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/eh-group.exp')
-rw-r--r--ld/testsuite/ld-elf/eh-group.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/eh-group.exp b/ld/testsuite/ld-elf/eh-group.exp
index 7ac15f3..59e77c4 100644
--- a/ld/testsuite/ld-elf/eh-group.exp
+++ b/ld/testsuite/ld-elf/eh-group.exp
@@ -29,6 +29,12 @@
# executable trying to create .eh_frame_hdr. It needs a separate .exp file due
# to the requirement of two `ld' runs.
+# Exclude non-ELF targets.
+
+if ![is_elf_format] {
+ return
+}
+
# Exclude non-CFI (such as ia64) targets.
if {![check_as_cfi]} {