This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

testsuite/ld-elf fixes


	* ld-elf/eh-group.exp: Only run on ELF targets.
	* ld-elf/eh5b.s: Export main, start, __start.

Index: ld/testsuite/ld-elf/eh-group.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/eh-group.exp,v
retrieving revision 1.2
diff -u -p -r1.2 eh-group.exp
--- ld/testsuite/ld-elf/eh-group.exp	20 Sep 2008 08:42:53 -0000	1.2
+++ ld/testsuite/ld-elf/eh-group.exp	25 Sep 2008 01:20:24 -0000
@@ -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: ld/testsuite/ld-elf/eh5b.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/eh5b.s,v
retrieving revision 1.1
diff -u -p -r1.1 eh5b.s
--- ld/testsuite/ld-elf/eh5b.s	21 Nov 2006 11:25:17 -0000	1.1
+++ ld/testsuite/ld-elf/eh5b.s	25 Sep 2008 01:20:24 -0000
@@ -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

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]