Skip to content

Commit c8373eb

Browse files
committed
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.
1 parent 4b0e8a5 commit c8373eb

File tree

7 files changed

+27
-13
lines changed

7 files changed

+27
-13
lines changed

binutils/testsuite/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2015-08-11 Alan Modra <[email protected]>
2+
3+
* binutils-all/strip-12.s: Align .bss section.
4+
* binutils-all/strip-12.d: Adjust.
5+
* binutils-all/symbols-1.d: Allow extraneous symbols.
6+
* binutils-all/symbols-2.d: Likewise, and V for weakened syms.
7+
* binutils-all/symbols-3.d: Likewise.
8+
* binutils-all/symbols-4.d: Likewise.
9+
110
2015-08-08 Hans-Peter Nilsson <[email protected]>
211

312
* binutils-all/strip-12.s: Use ".section .bss" instead of ".bss"

binutils/testsuite/binutils-all/strip-12.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
#readelf: -S --wide
44

55
#...
6-
\[[ 0-9]+\] \.bss[ \t]+NOBITS[ \t0-9a-f]+WA[ \t]+0[ \t]+0[ \t]+1
6+
\[[ 0-9]+\] \.bss[ \t]+NOBITS[ \t0-9a-f]+WA[ \t]+0[ \t]+0[ \t]+16
77
#pass

binutils/testsuite/binutils-all/strip-12.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.section .bss
2+
.p2align 4
23
.space 8
34
.section .debug_str,"MS",%progbits,1
45
.string ""

binutils/testsuite/binutils-all/symbols-1.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#DUMPPROG: nm
66
#nm: -n
77

8+
#...
89
0+ D bar
910
0+ d foa
1011
0+ d fob

binutils/testsuite/binutils-all/symbols-2.d

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
#DUMPPROG: nm
66
#nm: -n
77

8+
#...
89
0+ D bar
9-
0+ W foa
10-
0+ W fob
10+
0+ [VW] foa
11+
0+ [VW] fob
1112
0+ D foo
12-
0+ W foo1
13-
0+ W foo2
13+
0+ [VW] foo1
14+
0+ [VW] foo2
1415

binutils/testsuite/binutils-all/symbols-3.d

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
#DUMPPROG: nm
66
#nm: -n
77

8+
#...
89
0+ D bar
9-
0+ W foa
10-
0+ W fob
10+
0+ [VW] foa
11+
0+ [VW] fob
1112
0+ d foo
12-
0+ W foo1
13-
0+ W foo2
13+
0+ [VW] foo1
14+
0+ [VW] foo2
1415

binutils/testsuite/binutils-all/symbols-4.d

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
#DUMPPROG: nm
66
#nm: -n
77

8+
#...
89
0+ D bar
9-
0+ W foa
10-
0+ W fob
10+
0+ [VW] foa
11+
0+ [VW] fob
1112
0+ D foo
12-
0+ W foo1
13-
0+ W foo2
13+
0+ [VW] foo1
14+
0+ [VW] foo2
1415

0 commit comments

Comments
 (0)