Tweak binutils testsuite
authorAlan Modra <amodra@gmail.com>
Tue, 11 Aug 2015 12:24:48 +0000 (21:54 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 11 Aug 2015 13:59:36 +0000 (23:29 +0930)
Some targets provide aligned .bss sections, so explicitly align.
msp430 and rl78 emit "magic" symbols when assembling symbol.s, and
mips targets emit STT_OBJECT rather than STT_NOTYPE syms.

* binutils-all/strip-12.s: Align .bss section.
* binutils-all/strip-12.d: Adjust.
* binutils-all/symbols-1.d: Allow extraneous symbols.
* binutils-all/symbols-2.d: Likewise, and V for weakened syms.
* binutils-all/symbols-3.d: Likewise.
* binutils-all/symbols-4.d: Likewise.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/strip-12.d
binutils/testsuite/binutils-all/strip-12.s
binutils/testsuite/binutils-all/symbols-1.d
binutils/testsuite/binutils-all/symbols-2.d
binutils/testsuite/binutils-all/symbols-3.d
binutils/testsuite/binutils-all/symbols-4.d

index 88b0d786adc4c07d84d85ecea755879d9916650c..9efe4dcbf18f20ccdf1d2f41a4c96caaaf840858 100644 (file)
@@ -1,3 +1,12 @@
+2015-08-11  Alan Modra  <amodra@gmail.com>
+
+       * binutils-all/strip-12.s: Align .bss section.
+       * binutils-all/strip-12.d: Adjust.
+       * binutils-all/symbols-1.d: Allow extraneous symbols.
+       * binutils-all/symbols-2.d: Likewise, and V for weakened syms.
+       * binutils-all/symbols-3.d: Likewise.
+       * binutils-all/symbols-4.d: Likewise.
+
 2015-08-08  Hans-Peter Nilsson  <hp@axis.com>
 
        * binutils-all/strip-12.s: Use ".section .bss" instead of ".bss"
index a33faab2f694323660a49d9ce062b5df7534f551..e2ce4dc0043a8ccd092496e216b0531897e69395 100644 (file)
@@ -3,5 +3,5 @@
 #readelf: -S --wide
 
 #...
-  \[[ 0-9]+\] \.bss[ \t]+NOBITS[ \t0-9a-f]+WA[ \t]+0[ \t]+0[ \t]+1
+  \[[ 0-9]+\] \.bss[ \t]+NOBITS[ \t0-9a-f]+WA[ \t]+0[ \t]+0[ \t]+16
 #pass
index 020cecc895004c4d2b253fbeb8a18967fe212aad..9a48f92b314f38c2b35a2cd7cbe6f68593e2645d 100644 (file)
@@ -1,4 +1,5 @@
        .section        .bss
+       .p2align 4
        .space 8
        .section        .debug_str,"MS",%progbits,1
        .string ""
index 41314bdc279ddc422d63f93dca97eaebc5c02370..a2d8f55bc3cfbcc8e2c4dc6024070f7c94c7c47c 100644 (file)
@@ -5,6 +5,7 @@
 #DUMPPROG: nm
 #nm: -n
 
+#...
 0+ D bar
 0+ d foa
 0+ d fob
index 99950aaed5bcb3f844d4e32fabc5bf5b1835f213..68fa6737ec39a67857888ceb7b6fd11103d3b9cc 100644 (file)
@@ -5,10 +5,11 @@
 #DUMPPROG: nm
 #nm: -n
 
+#...
 0+ D bar
-0+ W foa
-0+ W fob
+0+ [VW] foa
+0+ [VW] fob
 0+ D foo
-0+ W foo1
-0+ W foo2
+0+ [VW] foo1
+0+ [VW] foo2
 
index 9838e6785a086f77fc669d1633f4992d078715ae..0815238a46a8dded576de8ad1161cc3e865b5c4c 100644 (file)
@@ -5,10 +5,11 @@
 #DUMPPROG: nm
 #nm: -n
 
+#...
 0+ D bar
-0+ W foa
-0+ W fob
+0+ [VW] foa
+0+ [VW] fob
 0+ d foo
-0+ W foo1
-0+ W foo2
+0+ [VW] foo1
+0+ [VW] foo2
 
index bb984fdde2f49ef48ee3ef6ccd5d3b7e73036dbf..7480b0de5911a1f1f6610e2a19785a3246784604 100644 (file)
@@ -5,10 +5,11 @@
 #DUMPPROG: nm
 #nm: -n
 
+#...
 0+ D bar
-0+ W foa
-0+ W fob
+0+ [VW] foa
+0+ [VW] fob
 0+ D foo
-0+ W foo1
-0+ W foo2
+0+ [VW] foo1
+0+ [VW] foo2