• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s | FileCheck %s
2
3// Test that the alignment of rodata doesn't force a alignment of the
4// previous section (.text)
5
6	nop
7	.section	.rodata,"a",@progbits
8	.align	8
9
10// CHECK:        Section {
11// CHECK:          Name: .text
12// CHECK-NEXT:     Type:
13// CHECK-NEXT:     Flags [
14// CHECK-NEXT:       SHF_ALLOC
15// CHECK-NEXT:       SHF_EXECINSTR
16// CHECK-NEXT:     ]
17// CHECK-NEXT:     Address:
18// CHECK-NEXT:     Offset:
19// CHECK-NEXT:     Size:
20// CHECK-NEXT:     Link: 0
21// CHECK-NEXT:     Info: 0
22// CHECK-NEXT:     AddressAlignment: 4
23// CHECK-NEXT:     EntrySize: 0
24// CHECK-NEXT:   }
25// CHECK-NEXT:   Section {
26// CHECK-NEXT:     Index:
27// CHECK-NEXT:     Name: .rodata
28// CHECK-NEXT:     Type: SHT_PROGBITS
29// CHECK-NEXT:     Flags [
30// CHECK-NEXT:       SHF_ALLOC
31// CHECK-NEXT:     ]
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
39// CHECK-NEXT:   }
40