* ld-elf/eh5b.s: Export main, start, __start.
+2008-09-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * ld-elf/eh-group.exp: Only run on ELF targets.
+       * ld-elf/eh5b.s: Export main, start, __start.
+
 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * ld-mips-elf/reloc-estimate-1.d: Make endian-neutral.
 
     return
 }
 
+# The test uses ELF .section directive
+if ![is_elf_format] {
+    return
+}
+
 set build_tests_ld {
   {"Build eh-group1.o"
    "-r" ""
 
        .cfi_def_cfa 0, 16
        .cfi_endproc
 
+       .globl main
+       .globl start
        .globl _start
+       .globl __start
+main:
+start:
 _start:
+__start:
        .long 0