llvm-project/lld/test/COFF/lldmap.test

12 lines
558 B
Plaintext

# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
# RUN: lld-link /out:%t.exe /entry:main /lldmap:%T/foo.map %t.obj
# RUN: FileCheck %s < %T/foo.map
# RUN: lld-link /out:%T/bar.exe /entry:main /lldmap %t.obj
# RUN: FileCheck %s < %T/bar.map
# CHECK: Address Size Align Out In File Symbol
# CHECK-NEXT: 00001000 00000006 4096 .text
# CHECK-NEXT: 00001000 00000006 16 .text$mn
# CHECK-NEXT: 00001000 00000006 16 {{.*}}lldmap.test.tmp.obj
# CHECK-NEXT: 00001000 00000006 0 main