This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
mmix ld testsuite
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>
- Date: Wed, 6 Jun 2012 15:43:46 +0930
- Subject: mmix ld testsuite
These tests regressed a while ago. They also need tweaking for the
file sym changes. I figure it is better to keep unrelated testsuite
fixes separate from the file sym changes.
I didn't bother finding which patch caused these regressions, but the
first three are all related to changes in --gc-sections, and in
particular the way --gc-sections interacts with linker script defined
symbols. http://sourceware.org/bugzilla/show_bug.cgi?id=13683#c10 is
probably relevant. The last one is due to non-alloc sections always
having their VMAs set to zero.
* ld-mmix/bpo-9.d: Update.
* ld-mmix/bpo-10.d: Update.
* ld-mmix/bpo-11.d: Update.
* ld-mmix/sec-7m.d: Update.
Index: ld/testsuite/ld-mmix/bpo-10.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-10.d,v
retrieving revision 1.11
diff -u -p -r1.11 bpo-10.d
--- ld/testsuite/ld-mmix/bpo-10.d 17 Oct 2006 13:41:48 -0000 1.11
+++ ld/testsuite/ld-mmix/bpo-10.d 5 Jun 2012 07:06:12 -0000
@@ -13,10 +13,10 @@ SYMBOL TABLE:
0+ l d \.init 0+ (|\.init)
0+7f8 l +d \.MMIX.reg_contents 0+ (|\.MMIX\.reg_contents)
0+ l \.init 0+ _start
-2000000000000000 g \*ABS\* 0+ __bss_start
-2000000000000000 g \*ABS\* 0+ _edata
-2000000000000000 g \*ABS\* 0+ _end
-0+4 g \.init 0+ _start\.
+2000000000000000 l \*ABS\* 0+ __bss_start
+2000000000000000 l \*ABS\* 0+ _edata
+2000000000000000 l \*ABS\* 0+ _end
+0+4 l \.init 0+ _start\.
Contents of section \.init:
0000 e37704a6 .*
Index: ld/testsuite/ld-mmix/bpo-11.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-11.d,v
retrieving revision 1.8
diff -u -p -r1.8 bpo-11.d
--- ld/testsuite/ld-mmix/bpo-11.d 2 Jun 2006 00:32:00 -0000 1.8
+++ ld/testsuite/ld-mmix/bpo-11.d 5 Jun 2012 07:06:12 -0000
@@ -15,13 +15,12 @@ SYMBOL TABLE:
0+10 l d \.text 0+ (|\.text)
0+7e8 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
0+ l \.init 0+ _start
+2000000000000000 l \*ABS\* 0+ __bss_start
+2000000000000000 l \*ABS\* 0+ _edata
+2000000000000000 l \*ABS\* 0+ _end
+0+10 l \.text 0+ _start\.
0+14 g \.text 0+ x
0+10 g \.text 0+ x2
-2000000000000000 g \*ABS\* 0+ __bss_start
-2000000000000000 g \*ABS\* 0+ _edata
-2000000000000000 g \*ABS\* 0+ _end
-0+10 g \.text 0+ _start\.
-
Contents of section \.init:
0000 00000000 0000003d 00000000 0000003a .*
Index: ld/testsuite/ld-mmix/bpo-9.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-9.d,v
retrieving revision 1.7
diff -u -p -r1.7 bpo-9.d
--- ld/testsuite/ld-mmix/bpo-9.d 2 Jun 2006 00:32:00 -0000 1.7
+++ ld/testsuite/ld-mmix/bpo-9.d 5 Jun 2012 07:06:12 -0000
@@ -14,10 +14,10 @@ SYMBOL TABLE:
0+10 l d \.text 0+ (|\.text)
0+7e8 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
0+ l \.init 0+ _start
+#...
0+14 g \.text 0+ x
0+10 g \.text 0+ x2
#...
-
Contents of section \.init:
0000 00000000 0000003d 00000000 0000003a .*
Contents of section \.text:
Index: ld/testsuite/ld-mmix/sec-7m.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/sec-7m.d,v
retrieving revision 1.5
diff -u -p -r1.5 sec-7m.d
--- ld/testsuite/ld-mmix/sec-7m.d 11 Oct 2010 08:10:43 -0000 1.5
+++ ld/testsuite/ld-mmix/sec-7m.d 5 Jun 2012 07:06:12 -0000
@@ -20,7 +20,7 @@ Sections:
Idx Name[ ]+Size[ ]+VMA[ ]+LMA[ ]+File off Algn
0 \.text[ ]+0+4 0+ 0+ 0+ 2\*\*2
[ ]+CONTENTS, ALLOC, LOAD, CODE
- 1 \.di +0+27ffb +0+4 +0+4 +0+ +2\*\*2
+ 1 \.di +0+27ffb +0+ +0+ +0+ +2\*\*2
[ ]+CONTENTS, READONLY
Contents of section \.text:
0000 e3fd0001[ ]+.*
--
Alan Modra
Australia Development Lab, IBM