1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux-gnu
%s
-o
- | elf-dump | FileCheck
%s
3 // Test that the alignment of rodata doesn
't force a alignment of the
4 // previous section (.bss)
7 .section .rodata,"a",@progbits
10 // CHECK: # Section 0x00000003
11 // CHECK-NEXT: (('sh_name
', 0x0000000d) # '.bss'
12 // CHECK-NEXT: ('sh_type', 0x00000008)
13 // CHECK-NEXT: ('sh_flags', 0x00000003)
14 // CHECK-NEXT: ('sh_addr', 0x00000000)
15 // CHECK-NEXT: ('sh_offset', 0x00000044)
16 // CHECK-NEXT: ('sh_size', 0x00000000)
17 // CHECK-NEXT: ('sh_link', 0x00000000)
18 // CHECK-NEXT: ('sh_info', 0x00000000)
19 // CHECK-NEXT: ('sh_addralign', 0x00000004)
20 // CHECK-NEXT: ('sh_entsize', 0x00000000)
22 // CHECK-NEXT: # Section 0x00000004
23 // CHECK-NEXT: (('sh_name', 0x00000012) # '.rodata'
24 // CHECK-NEXT: ('sh_type', 0x00000001)
25 // CHECK-NEXT: ('sh_flags', 0x00000002)
26 // CHECK-NEXT: ('sh_addr', 0x00000000)
27 // CHECK-NEXT: ('sh_offset', 0x00000048)
28 // CHECK-NEXT: ('sh_size', 0x00000000)
29 // CHECK-NEXT: ('sh_link', 0x00000000)
30 // CHECK-NEXT: ('sh_info', 0x00000000)
31 // CHECK-NEXT: ('sh_addralign', 0x00000008)
32 // CHECK-NEXT: ('sh_entsize', 0x00000000)