3 ## Check output section ALIGN modifier with -r
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/align.s -o %t1.o
6 # RUN: ld.lld -r -o %t2.o --script %s %t1.o
7 # RUN: llvm-readelf -S %t2.o | FileCheck %s
9 # CHECK: Section Headers:
10 # CHECK-NEXT: Name Type Address Off Size ES Flg Lk Inf Al
11 # CHECK-NEXT: NULL 0000000000000000 000000 000000 00
12 # CHECK-NEXT: .aaa PROGBITS 0000000000000000 000040 000008 00 A 0 0 1
13 # CHECK-NEXT: .bbb PROGBITS 0000000000000000 001000 000008 00 A 0 0 4096
14 # CHECK-NEXT: .ccc PROGBITS 0000000000000000 004000 000008 00 A 0 0 16384
19 .bbb : ALIGN(4096) { *(.bbb) }
20 .ccc : ALIGN(4096 * 4) { *(.ccc) }