Skip to content

Commit

Permalink
Tweak binutils testsuite
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amodra committed Aug 11, 2015
1 parent 4b0e8a5 commit c8373eb
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 13 deletions.
9 changes: 9 additions & 0 deletions binutils/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2015-08-11 Alan Modra <[email protected]>

* 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 <[email protected]>

* binutils-all/strip-12.s: Use ".section .bss" instead of ".bss"
Expand Down
2 changes: 1 addition & 1 deletion binutils/testsuite/binutils-all/strip-12.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions binutils/testsuite/binutils-all/strip-12.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.section .bss
.p2align 4
.space 8
.section .debug_str,"MS",%progbits,1
.string ""
Expand Down
1 change: 1 addition & 0 deletions binutils/testsuite/binutils-all/symbols-1.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#DUMPPROG: nm
#nm: -n

#...
0+ D bar
0+ d foa
0+ d fob
Expand Down
9 changes: 5 additions & 4 deletions binutils/testsuite/binutils-all/symbols-2.d
Original file line number Diff line number Diff line change
Expand Up @@ -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

9 changes: 5 additions & 4 deletions binutils/testsuite/binutils-all/symbols-3.d
Original file line number Diff line number Diff line change
Expand Up @@ -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

9 changes: 5 additions & 4 deletions binutils/testsuite/binutils-all/symbols-4.d
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c8373eb

Please sign in to comment.