1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 3 4# RUN: echo "SECTIONS { \ 5# RUN: .aaa : ALIGN(4096) { *(.aaa) } \ 6# RUN: .bbb : ALIGN(4096 * 4) { *(.bbb) } \ 7# RUN: .ccc : ALIGN(4096 * 8) { *(.ccc) } \ 8# RUN: }" > %t.script 9# RUN: ld.lld -o %t1 --script %t.script %t 10# RUN: llvm-readobj --sections %t1 | FileCheck %s 11 12.global _start 13_start: 14 nop 15 16// CHECK: Name: .aaa 17// CHECK-NEXT: Type: SHT_PROGBITS 18// CHECK-NEXT: Flags [ 19// CHECK-NEXT: SHF_ALLOC 20// CHECK-NEXT: ] 21// CHECK-NEXT: Address: 22// CHECK-NEXT: Offset: 23// CHECK-NEXT: Size: 8 24// CHECK-NEXT: Link: 0 25// CHECK-NEXT: Info: 0 26// CHECK-NEXT: AddressAlignment: 4096 27// CHECK-NEXT: EntrySize: 28 29.section .aaa, "a" 30.quad 0 31 32// CHECK: Name: .bbb 33// CHECK-NEXT: Type: SHT_PROGBITS 34// CHECK-NEXT: Flags [ 35// CHECK-NEXT: SHF_ALLOC 36// CHECK-NEXT: ] 37// CHECK-NEXT: Address: 38// CHECK-NEXT: Offset: 39// CHECK-NEXT: Size: 8 40// CHECK-NEXT: Link: 0 41// CHECK-NEXT: Info: 0 42// CHECK-NEXT: AddressAlignment: 16384 43// CHECK-NEXT: EntrySize: 44 45.section .bbb, "a" 46.quad 0 47 48// CHECK: Name: .ccc 49// CHECK-NEXT: Type: SHT_PROGBITS 50// CHECK-NEXT: Flags [ 51// CHECK-NEXT: SHF_ALLOC 52// CHECK-NEXT: ] 53// CHECK-NEXT: Address: 54// CHECK-NEXT: Offset: 55// CHECK-NEXT: Size: 8 56// CHECK-NEXT: Link: 0 57// CHECK-NEXT: Info: 0 58// CHECK-NEXT: AddressAlignment: 32768 59// CHECK-NEXT: EntrySize: 60 61.section .ccc, "a" 62.quad 0 63