gas: consistently emit diagnostics for non-zero data emission to .bss/.struct
[external/binutils.git] / gas / testsuite / gas / elf / bss.s
1         .macro  bss name
2
3         .long   0
4         .long   ,
5
6         .balign 32
7
8         .ifnes "\name", "struct"
9         .ascii  ""
10         .asciz  ""
11         .endif
12
13         .fill   1, 1
14         .org    .+1
15         .skip   1
16         .sleb128
17         .sleb128 0
18         .uleb128
19         .uleb128 0
20
21         .ifndef okay
22
23         .long   1
24         .long   .
25         .long   x
26         .float  0.0
27
28         .balign 32, -1
29
30         .ifnes "\name", "struct"
31         .ascii  "0"
32         .asciz  "0"
33         .endif
34
35         .fill   1, 1, -1
36         .org    .+1, -1
37         .skip   1, -1
38         .sleb128 -1
39         .uleb128 1
40
41         .endif
42
43 endof_\name:
44         .endm
45
46         .bss
47         bss     bss
48
49         .section .bss.local, "aw"
50         bss     bss_local
51
52         .section .private, "aw", %nobits
53         bss     private
54
55         .struct
56         bss     struct