* ld-elf/eh-group.exp: Only run on ELF targets.
authorAlan Modra <amodra@gmail.com>
Thu, 25 Sep 2008 03:16:42 +0000 (03:16 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 25 Sep 2008 03:16:42 +0000 (03:16 +0000)
* ld-elf/eh5b.s: Export main, start, __start.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/eh-group.exp
ld/testsuite/ld-elf/eh5b.s

index e7f9859..ea0d673 100644 (file)
@@ -1,3 +1,8 @@
+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.
index c55e06e..6072355 100644 (file)
@@ -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" ""
index 3e5e010..fa27edd 100644 (file)
        .cfi_def_cfa 0, 16
        .cfi_endproc
 
+       .globl main
+       .globl start
        .globl _start
+       .globl __start
+main:
+start:
 _start:
+__start:
        .long 0