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]

Re: ld: separate output sections for incompatible orphans


On Sat, May 16, 2009 at 12:03:50AM +0930, Alan Modra wrote:
> ld/testsuite/
> 	* ld-pe/orphan.d, * ld-pe/orphana.s, * ld-pe/orphanb.s,
> 	* ld-pe/orphand.s, * ld-pe/orphane.s: New test.

I missed seeing failures on sh-pe, which pads section size to
multiples of 16 in the assembler.

	* ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s,
	* ld-elf/orphan3c.s, * ld-elf/orphan3d.s, * ld-elf/orphan3e.s,
	* ld-elf/orphan3f.s: Increase section size to 16.
	* ld-pe/orphan.d, * ld-pe/orphana.s, * ld-pe/orphanb.s,
	* ld-pe/orphand.s, * ld-pe/orphane.s: Likewise.

Index: ld/testsuite/ld-elf/orphan3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan3.d,v
retrieving revision 1.1
diff -u -p -r1.1 orphan3.d
--- ld/testsuite/ld-elf/orphan3.d	15 May 2009 14:22:35 -0000	1.1
+++ ld/testsuite/ld-elf/orphan3.d	16 May 2009 00:52:10 -0000
@@ -12,9 +12,9 @@
 #xfail: "cr16-*-*" "crx-*-*" "d10v-*-*" "xstormy16-*-*"
 
 #...
-  \[[ 0-9]+\] \.foo +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+8 +0+ +A +0 +0 +[0-9]+
+  \[[ 0-9]+\] \.foo +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+20 +0+ +A +0 +0 +[0-9]+
 #...
-  \[[ 0-9]+\] \.foo +NOBITS +[0-9a-f]+ +[0-9a-f]+ +0+8 +0+ +A +0 +0 +[0-9]+
+  \[[ 0-9]+\] \.foo +NOBITS +[0-9a-f]+ +[0-9a-f]+ +0+20 +0+ +A +0 +0 +[0-9]+
 #...
   \[[ 0-9]+\] \.foo +PROGBITS +0+ +[0-9a-f]+ +0+8 +0+ +0 +0 +[0-9]+
   \[[ 0-9]+\] \.[^f].*
Index: ld/testsuite/ld-elf/orphan3a.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan3a.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphan3a.s
--- ld/testsuite/ld-elf/orphan3a.s	15 May 2009 14:22:35 -0000	1.1
+++ ld/testsuite/ld-elf/orphan3a.s	16 May 2009 00:52:10 -0000
@@ -9,4 +9,4 @@ _start:
 __start:
 
  .section .foo,"a",%nobits
- .space 4
+ .space 16
Index: ld/testsuite/ld-elf/orphan3b.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan3b.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphan3b.s
--- ld/testsuite/ld-elf/orphan3b.s	15 May 2009 14:22:35 -0000	1.1
+++ ld/testsuite/ld-elf/orphan3b.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo,"a",%progbits
- .long 1
+ .long 1,1,1,1
Index: ld/testsuite/ld-elf/orphan3c.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan3c.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphan3c.s
--- ld/testsuite/ld-elf/orphan3c.s	15 May 2009 14:22:35 -0000	1.1
+++ ld/testsuite/ld-elf/orphan3c.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo,"",%progbits
- .long 2
+ .long 2,2,2,2
Index: ld/testsuite/ld-elf/orphan3d.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan3d.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphan3d.s
--- ld/testsuite/ld-elf/orphan3d.s	15 May 2009 14:22:35 -0000	1.1
+++ ld/testsuite/ld-elf/orphan3d.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo,"a",%nobits
- .space 4
+ .space 16
Index: ld/testsuite/ld-elf/orphan3e.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan3e.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphan3e.s
--- ld/testsuite/ld-elf/orphan3e.s	15 May 2009 14:22:35 -0000	1.1
+++ ld/testsuite/ld-elf/orphan3e.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo,"a",%progbits
- .long 4
+ .long 4,4,4,4
Index: ld/testsuite/ld-elf/orphan3f.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/orphan3f.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphan3f.s
--- ld/testsuite/ld-elf/orphan3f.s	15 May 2009 14:22:35 -0000	1.1
+++ ld/testsuite/ld-elf/orphan3f.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo,"",%progbits
- .long 5
+ .long 5,5,5,5
Index: ld/testsuite/ld-pe/orphan.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/orphan.d,v
retrieving revision 1.1
diff -u -p -r1.1 orphan.d
--- ld/testsuite/ld-pe/orphan.d	15 May 2009 14:22:36 -0000	1.1
+++ ld/testsuite/ld-pe/orphan.d	16 May 2009 00:52:10 -0000
@@ -7,7 +7,7 @@
 
 #...
  +0 +\.text .*
- +1 +\.foo +0+8 .*
- +2 +\.foo +0+8 .*
+ +1 +\.foo +0+20 .*
+ +2 +\.foo +0+20 .*
  +3 +\.idata .*
 #pass
Index: ld/testsuite/ld-pe/orphana.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/orphana.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphana.s
--- ld/testsuite/ld-pe/orphana.s	15 May 2009 14:22:36 -0000	1.1
+++ ld/testsuite/ld-pe/orphana.s	16 May 2009 00:52:10 -0000
@@ -5,4 +5,4 @@ _mainCRTStartup:
 _start:
 
  .section .foo,"b"
- .space 4
+ .space 16
Index: ld/testsuite/ld-pe/orphanb.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/orphanb.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphanb.s
--- ld/testsuite/ld-pe/orphanb.s	15 May 2009 14:22:36 -0000	1.1
+++ ld/testsuite/ld-pe/orphanb.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo
- .long 1
+ .long 1,1,1,1
Index: ld/testsuite/ld-pe/orphand.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/orphand.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphand.s
--- ld/testsuite/ld-pe/orphand.s	15 May 2009 14:22:36 -0000	1.1
+++ ld/testsuite/ld-pe/orphand.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo,"b"
- .space 4
+ .space 16
Index: ld/testsuite/ld-pe/orphane.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/orphane.s,v
retrieving revision 1.1
diff -u -p -r1.1 orphane.s
--- ld/testsuite/ld-pe/orphane.s	15 May 2009 14:22:36 -0000	1.1
+++ ld/testsuite/ld-pe/orphane.s	16 May 2009 00:52:10 -0000
@@ -1,2 +1,2 @@
  .section .foo
- .long 4
+ .long 4,4,4,4

-- 
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]