# Expect script for .eh_frame entries to a removed section.
-# Copyright 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
# 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]} {
set build_tests_ld [list \
[list "Build eh-group1.o" \
- "-r" "$as_options" \
+ "-r" "" "$as_options" \
{eh-group1.s eh-group2.s} {} "eh-group.o"] \
]