1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /out:%t.exe /entry:main /align:32 %t.obj
3 # RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
5 # CHECK: SectionAlignment: 32
7 # RUN: lld-link /out:%t.exe /entry:main /align:32 %t.obj 2>&1 \
8 # RUN: | FileCheck -check-prefix=WARN1 %s
10 # WARN1: /align specified without /driver; image may not run
12 # RUN: lld-link /out:%t.exe /entry:main /align:32 %t.obj /driver 2>&1 \
13 # RUN: | FileCheck -check-prefix=WARN2 --allow-empty %s
15 # RUN: lld-link /out:%t.exe /entry:main %t.obj /driver 2>&1 \
16 # RUN: | FileCheck -check-prefix=WARN2 --allow-empty %s
18 # WARN2-NOT: /align specified without /driver; image may not run
22 Machine
: IMAGE_FILE_MACHINE_AMD64
26 Characteristics
: [ IMAGE_SCN_CNT_CODE
, IMAGE_SCN_MEM_EXECUTE
, IMAGE_SCN_MEM_READ
]
28 SectionData
: 0000000000000000
31 SymbolName
: __ImageBase
32 Type
: IMAGE_REL_AMD64_ADDR64
37 SimpleType
: IMAGE_SYM_TYPE_NULL
38 ComplexType
: IMAGE_SYM_DTYPE_NULL
39 StorageClass
: IMAGE_SYM_CLASS_STATIC
42 NumberOfRelocations
: 1
43 NumberOfLinenumbers
: 0
49 SimpleType
: IMAGE_SYM_TYPE_NULL
50 ComplexType
: IMAGE_SYM_DTYPE_NULL
51 StorageClass
: IMAGE_SYM_CLASS_EXTERNAL
55 SimpleType
: IMAGE_SYM_TYPE_NULL
56 ComplexType
: IMAGE_SYM_DTYPE_NULL
57 StorageClass
: IMAGE_SYM_CLASS_EXTERNAL