This is the mail archive of the binutils-cvs@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]

[binutils-gdb] Tweak binutils testsuite


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c8373ebb4ed77c361d95aa806cfbe1b4062b5be5

commit c8373ebb4ed77c361d95aa806cfbe1b4062b5be5
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Aug 11 21:54:48 2015 +0930

    Tweak binutils testsuite
    
    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.

Diff:
---
 binutils/testsuite/ChangeLog                | 9 +++++++++
 binutils/testsuite/binutils-all/strip-12.d  | 2 +-
 binutils/testsuite/binutils-all/strip-12.s  | 1 +
 binutils/testsuite/binutils-all/symbols-1.d | 1 +
 binutils/testsuite/binutils-all/symbols-2.d | 9 +++++----
 binutils/testsuite/binutils-all/symbols-3.d | 9 +++++----
 binutils/testsuite/binutils-all/symbols-4.d | 9 +++++----
 7 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 88b0d78..9efe4dc 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -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"
diff --git a/binutils/testsuite/binutils-all/strip-12.d b/binutils/testsuite/binutils-all/strip-12.d
index a33faab..e2ce4dc 100644
--- a/binutils/testsuite/binutils-all/strip-12.d
+++ b/binutils/testsuite/binutils-all/strip-12.d
@@ -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
diff --git a/binutils/testsuite/binutils-all/strip-12.s b/binutils/testsuite/binutils-all/strip-12.s
index 020cecc..9a48f92 100644
--- a/binutils/testsuite/binutils-all/strip-12.s
+++ b/binutils/testsuite/binutils-all/strip-12.s
@@ -1,4 +1,5 @@
 	.section	.bss
+	.p2align 4
 	.space 8
 	.section	.debug_str,"MS",%progbits,1
 	.string	""
diff --git a/binutils/testsuite/binutils-all/symbols-1.d b/binutils/testsuite/binutils-all/symbols-1.d
index 41314bd..a2d8f55 100644
--- a/binutils/testsuite/binutils-all/symbols-1.d
+++ b/binutils/testsuite/binutils-all/symbols-1.d
@@ -5,6 +5,7 @@
 #DUMPPROG: nm
 #nm: -n
 
+#...
 0+ D bar
 0+ d foa
 0+ d fob
diff --git a/binutils/testsuite/binutils-all/symbols-2.d b/binutils/testsuite/binutils-all/symbols-2.d
index 99950aa..68fa673 100644
--- a/binutils/testsuite/binutils-all/symbols-2.d
+++ b/binutils/testsuite/binutils-all/symbols-2.d
@@ -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
 
diff --git a/binutils/testsuite/binutils-all/symbols-3.d b/binutils/testsuite/binutils-all/symbols-3.d
index 9838e67..0815238 100644
--- a/binutils/testsuite/binutils-all/symbols-3.d
+++ b/binutils/testsuite/binutils-all/symbols-3.d
@@ -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
 
diff --git a/binutils/testsuite/binutils-all/symbols-4.d b/binutils/testsuite/binutils-all/symbols-4.d
index bb984fd..7480b0d 100644
--- a/binutils/testsuite/binutils-all/symbols-4.d
+++ b/binutils/testsuite/binutils-all/symbols-4.d
@@ -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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]