1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux-gnu
%s
-o
- | llvm-readobj
-S
- | FileCheck
%s
3 // Test that the alignment of rodata doesn
't force a alignment of the
4 // previous section (.text)
7 .section .rodata,"a",@progbits
13 // CHECK-NEXT: Flags [
14 // CHECK-NEXT: SHF_ALLOC
15 // CHECK-NEXT: SHF_EXECINSTR
17 // CHECK-NEXT: Address:
18 // CHECK-NEXT: Offset:
20 // CHECK-NEXT: Link: 0
21 // CHECK-NEXT: Info: 0
22 // CHECK-NEXT: AddressAlignment: 4
23 // CHECK-NEXT: EntrySize: 0
25 // CHECK-NEXT: Section {
27 // CHECK-NEXT: Name: .rodata
28 // CHECK-NEXT: Type: SHT_PROGBITS
29 // CHECK-NEXT: Flags [
30 // CHECK-NEXT: SHF_ALLOC
32 // CHECK-NEXT: Address: 0x0
33 // CHECK-NEXT: Offset: 0x48
34 // CHECK-NEXT: Size: 0
35 // CHECK-NEXT: Link: 0
36 // CHECK-NEXT: Info: 0
37 // CHECK-NEXT: AddressAlignment: 8
38 // CHECK-NEXT: EntrySize: 0