This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld testsuite tweaks
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Mon, 15 Aug 2005 23:39:50 +0930
- Subject: ld testsuite tweaks
Allows these tests to pass on a few more targets.
* ld-elf/empty.s: Define "start".
* ld-elf/merge2.d: xfail arc-*-* and dlx-*-*.
* ld-scripts/empty-aligned.s: No .data section.
* ld-scripts/empty-aligned.t: Discard most sections.
* ld-scripts/empty-aligned.d: Adjust.
Index: ld/testsuite/ld-elf/empty.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/empty.s,v
retrieving revision 1.1
diff -u -p -r1.1 empty.s
--- ld/testsuite/ld-elf/empty.s 13 Apr 2005 16:44:02 -0000 1.1
+++ ld/testsuite/ld-elf/empty.s 15 Aug 2005 13:34:41 -0000
@@ -1,6 +1,9 @@
.section .bss
bar:
.text
+ .type start,"function"
+ .global start
+start:
.type _start,"function"
.global _start
_start:
Index: ld/testsuite/ld-elf/merge2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/merge2.d,v
retrieving revision 1.1
diff -u -p -r1.1 merge2.d
--- ld/testsuite/ld-elf/merge2.d 10 Sep 2003 23:35:40 -0000 1.1
+++ ld/testsuite/ld-elf/merge2.d 15 Aug 2005 13:34:41 -0000
@@ -1,6 +1,7 @@
#source: merge2.s
#ld: -T merge.ld
#objdump: -s
+#xfail: "arc-*-*" "dlx-*-*"
.*: file format .*elf.*
Index: ld/testsuite/ld-scripts/empty-aligned.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/empty-aligned.d,v
retrieving revision 1.3
diff -u -p -r1.3 empty-aligned.d
--- ld/testsuite/ld-scripts/empty-aligned.d 10 Jun 2005 00:44:01 -0000 1.3
+++ ld/testsuite/ld-scripts/empty-aligned.d 15 Aug 2005 13:34:43 -0000
@@ -9,4 +9,4 @@ Program Headers:
Section to Segment mapping:
+Segment Sections\.\.\.
- +00.*\.text.*\.data.*
+ +00 +.text
Index: ld/testsuite/ld-scripts/empty-aligned.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/empty-aligned.s,v
retrieving revision 1.1
diff -u -p -r1.1 empty-aligned.s
--- ld/testsuite/ld-scripts/empty-aligned.s 17 May 2005 16:42:54 -0000 1.1
+++ ld/testsuite/ld-scripts/empty-aligned.s 15 Aug 2005 13:34:43 -0000
@@ -1,4 +1,2 @@
.text
.long 123
- .data
- .long 123
Index: ld/testsuite/ld-scripts/empty-aligned.t
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/empty-aligned.t,v
retrieving revision 1.2
diff -u -p -r1.2 empty-aligned.t
--- ld/testsuite/ld-scripts/empty-aligned.t 10 Jun 2005 00:44:01 -0000 1.2
+++ ld/testsuite/ld-scripts/empty-aligned.t 15 Aug 2005 13:34:43 -0000
@@ -25,6 +25,5 @@ SECTIONS
{
*(.text4)
}
- .data : { *(.data) }
- .bss : { *(.bss) }
+ /DISCARD/ : { *(*) }
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre