aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-09-25 03:16:42 +0000
committerAlan Modra <amodra@gmail.com>2008-09-25 03:16:42 +0000
commit68db4c759fdbf32ab365624b5c794d2152ad83da (patch)
tree77bf7cc240b2ab60b2117b3d8ca55513d7496128
parent4ac0c8988501e8f6bd5d37187c236451b0a94c76 (diff)
downloadgdb-68db4c759fdbf32ab365624b5c794d2152ad83da.zip
gdb-68db4c759fdbf32ab365624b5c794d2152ad83da.tar.gz
gdb-68db4c759fdbf32ab365624b5c794d2152ad83da.tar.bz2
* ld-elf/eh-group.exp: Only run on ELF targets.
* ld-elf/eh5b.s: Export main, start, __start.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/eh-group.exp5
-rw-r--r--ld/testsuite/ld-elf/eh5b.s6
3 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index e7f9859..ea0d673 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-elf/eh-group.exp b/ld/testsuite/ld-elf/eh-group.exp
index c55e06e..6072355 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 3e5e010..fa27edd 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