llvm-project/lld/test/pecoff/alignment.test

23 lines
621 B
Plaintext

# RUN: yaml2obj %p/Inputs/alignment.obj.yaml > %t.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /force \
# RUN: /entry:start /opt:noref -- %t.obj
# RUN: llvm-readobj -sections %t.exe | FileCheck %s
CHECK: Name: .bss (2E 62 73 73 00 00 00 00)
CHECK: RawDataSize: 0
CHECK: Name: .data (2E 64 61 74 61 00 00 00)
CHECK-NEXT: VirtualSize: 0x6
CHECK: Name: .text (2E 74 65 78 74 00 00 00)
CHECK-NEXT: VirtualSize: 0x1001
CHECK: Name: .yyy
CHECK-NEXT: VirtualSize: 0x2
CHECK-NEXT: VirtualAddress: 0x5000
CHECK: Name: .zzz
CHECK-NEXT: VirtualSize: 0x2
CHECK-NEXT: VirtualAddress: 0x8000