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: PATCH: PR ld/11998: Bogus linker warning


On Thu, Sep 09, 2010 at 12:19:50PM -0700, H.J. Lu wrote:
> 2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	PR ld/11998
> 	* ld-scripts/rgn-at5.d: New.
> 	* ld-scripts/rgn-at5.s: Likewise.
> 	* ld-scripts/rgn-at5.t: Likewise.

arm-linux/check.log0:FAIL: rgn-at5
frv-linux/check.log0:FAIL: rgn-at5
hppa64-linux/check.log0:FAIL: rgn-at5
hppa-linux/check.log0:FAIL: rgn-at5
i370-linux/check.log0:FAIL: rgn-at5
mips64-linux/check.log0:FAIL: rgn-at5
mipsel-linux-gnu/check.log0:FAIL: rgn-at5
mipsisa32el-linux/check.log0:FAIL: rgn-at5
mips-linux/check.log0:FAIL: rgn-at5
sparc64-linux/check.log0:FAIL: rgn-at5
sparc-linux/check.log0:FAIL: rgn-at5

	* ld-elf/group3b.d: Disable for generic linker targets.
	* ld-elf/linkonce2.d: Likewise.
	* ld-scripts/empty-address-2a.d: Disable for frv and aout,oldld.
	* ld-scripts/empty-address-2b.d: Likewise.
	* ld-scripts/rgn-at5.s: Don't use .word.
	* ld-scripts/rgn-at5.d: Update.

Index: ld/testsuite/ld-elf/group3b.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/group3b.d,v
retrieving revision 1.2
diff -u -p -r1.2 group3b.d
--- ld/testsuite/ld-elf/group3b.d	23 Sep 2009 03:12:25 -0000	1.2
+++ ld/testsuite/ld-elf/group3b.d	16 Sep 2010 00:09:18 -0000
@@ -2,6 +2,8 @@
 #source: group3a.s
 #ld: -T group.ld
 #readelf: -s
+#notarget arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
+
 Symbol table '.symtab' contains .* entries:
 #...
 .*: 0+1000 +0 +OBJECT +GLOBAL +HIDDEN +. foo
Index: ld/testsuite/ld-elf/linkonce2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/linkonce2.d,v
retrieving revision 1.2
diff -u -p -r1.2 linkonce2.d
--- ld/testsuite/ld-elf/linkonce2.d	17 Aug 2009 09:22:18 -0000	1.2
+++ ld/testsuite/ld-elf/linkonce2.d	16 Sep 2010 00:09:18 -0000
@@ -2,6 +2,7 @@
 #source: linkonce1b.s
 #ld: -emit-relocs
 #objdump: -r
+#notarget arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
 
 .*:     file format .*
 
Index: ld/testsuite/ld-scripts/empty-address-2a.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/empty-address-2a.d,v
retrieving revision 1.2
diff -u -p -r1.2 empty-address-2a.d
--- ld/testsuite/ld-scripts/empty-address-2a.d	9 Sep 2009 12:13:42 -0000	1.2
+++ ld/testsuite/ld-scripts/empty-address-2a.d	16 Sep 2010 00:09:19 -0000
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2a.t
 #nm: -n
-#notarget: frv-*-*linux*
+#notarget: frv-*-*linux* *-*-linux*aout *-*-linux*oldld
 #...
 0+0 T _start
 #...
Index: ld/testsuite/ld-scripts/empty-address-2b.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/empty-address-2b.d,v
retrieving revision 1.2
diff -u -p -r1.2 empty-address-2b.d
--- ld/testsuite/ld-scripts/empty-address-2b.d	9 Sep 2009 12:13:42 -0000	1.2
+++ ld/testsuite/ld-scripts/empty-address-2b.d	16 Sep 2010 00:09:19 -0000
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2b.t
 #nm: -n
-#notarget: frv-*-*linux*
+#notarget: frv-*-*linux* *-*-linux*aout *-*-linux*oldld
 #...
 0+0 T _start
 #...
Index: ld/testsuite/ld-scripts/rgn-at5.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/rgn-at5.d,v
retrieving revision 1.2
diff -u -p -r1.2 rgn-at5.d
--- ld/testsuite/ld-scripts/rgn-at5.d	10 Sep 2010 01:00:28 -0000	1.2
+++ ld/testsuite/ld-scripts/rgn-at5.d	16 Sep 2010 00:09:19 -0000
@@ -11,8 +11,9 @@
 
 Sections:
 Idx +Name +Size +VMA +LMA +File off +Algn +Flags
-  0 .sec0 +0+2 +0+02000 +0+2000 +0+02000 +.*
-  1 .sec1 +0+2 +0+01000 +0+012c +0+01000 +.*
-  2 .sec2 +0+2 +0+04000 +0+603c +0+04000 +.*
-  3 .sec3 +0+2 +0+05000 +0+412c +0+03000 +.*
-  4 .sec4 +0+2 +0+02002 +0+2002 +0+02002 +.*
+  0 .sec0 +0+4 +0+02000 +0+2000 +0+02000 +.*
+  1 .sec1 +0+4 +0+01000 +0+012c +0+01000 +.*
+  2 .sec2 +0+4 +0+04000 +0+603c +0+04000 +.*
+  3 .sec3 +0+4 +0+05000 +0+412c +0+03000 +.*
+  4 .sec4 +0+4 +0+02004 +0+2004 +0+02004 +.*
+#pass
Index: ld/testsuite/ld-scripts/rgn-at5.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/rgn-at5.s,v
retrieving revision 1.1
diff -u -p -r1.1 rgn-at5.s
--- ld/testsuite/ld-scripts/rgn-at5.s	9 Sep 2010 19:22:29 -0000	1.1
+++ ld/testsuite/ld-scripts/rgn-at5.s	16 Sep 2010 00:09:19 -0000
@@ -1,14 +1,14 @@
 	.section .sec0, "a"
-	.word 0
+	.long 0
 
 	.section .sec1, "a"
-	.word 0x11
+	.long 0x11
 
 	.section .sec2, "a"
-	.word 0x22
+	.long 0x22
 
 	.section .sec3, "a"
-	.word 0x33
+	.long 0x33
 
 	.section .sec4, "a"
-	.word 0x44
+	.long 0x44

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