From 68db4c759fdbf32ab365624b5c794d2152ad83da Mon Sep 17 00:00:00 2001 From: Alan Modra 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 e7f98599cac..ea0d673c6ac 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 c55e06ebc38..607235570dc 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 3e5e0108f95..fa27edd31d0 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.30.2