1 ## Test the p_align field of a program header can be set explicitly or inferred
2 ## from the maximum alignment of contained sections.
4 ## Explicit Align has priority over section alignments.
6 # RUN: yaml2obj --docnum=1 %s -o %t
7 # RUN: llvm-readobj -l %t | FileCheck %s
8 # CHECK: ProgramHeader {
9 # CHECK-NOT: ProgramHeader {
10 # CHECK: Alignment: 16
33 ## If Align is not specified, p_align is inferred from the maximum alignment
34 ## of contained sections.
36 # RUN: yaml2obj --docnum=2 %s -o %t
37 # RUN: llvm-readobj -l %t | FileCheck %s