From 058af742edc4c2f438482dfdcf9fe07a89135c30 Mon Sep 17 00:00:00 2001 From: amodra Date: Thu, 25 Sep 2008 03:16:42 +0000 Subject: [PATCH] * ld-elf/eh-group.exp: Only run on ELF targets. * ld-elf/eh5b.s: Export main, start, __start. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-elf/eh-group.exp | 5 +++++ ld/testsuite/ld-elf/eh5b.s | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e7f98599ca..ea0d673c6a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-09-25 Alan Modra + + * ld-elf/eh-group.exp: Only run on ELF targets. + * ld-elf/eh5b.s: Export main, start, __start. + 2008-09-20 Richard Sandiford * ld-mips-elf/reloc-estimate-1.d: Make endian-neutral. diff --git a/ld/testsuite/ld-elf/eh-group.exp b/ld/testsuite/ld-elf/eh-group.exp index c55e06ebc3..607235570d 100644 --- a/ld/testsuite/ld-elf/eh-group.exp +++ b/ld/testsuite/ld-elf/eh-group.exp @@ -35,6 +35,11 @@ if {![check_as_cfi]} { return } +# The test uses ELF .section directive +if ![is_elf_format] { + return +} + set build_tests_ld { {"Build eh-group1.o" "-r" "" diff --git a/ld/testsuite/ld-elf/eh5b.s b/ld/testsuite/ld-elf/eh5b.s index 3e5e0108f9..fa27edd31d 100644 --- a/ld/testsuite/ld-elf/eh5b.s +++ b/ld/testsuite/ld-elf/eh5b.s @@ -24,6 +24,12 @@ .cfi_def_cfa 0, 16 .cfi_endproc + .globl main + .globl start .globl _start + .globl __start +main: +start: _start: +__start: .long 0 -- 2.11.0