62 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: lld-link /out:%t.exe /entry:main %t.obj3# RUN: llvm-objdump -s %t.exe | FileCheck %s4# RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s5 6# CHECK: Contents of section .text:7# CHECK-NEXT: 1000 002000008# CHECK: Contents of section .rdata:9# CHECK-NEXT: 2000 04100040 0100000010 11# BASEREL: BaseReloc [12# BASEREL-NEXT: Entry {13# BASEREL-NEXT: Type: DIR6414# BASEREL-NEXT: Address: 0x200015# BASEREL-NEXT: }16# BASEREL-NEXT: Entry {17# BASEREL-NEXT: Type: ABSOLUTE18# BASEREL-NEXT: Address: 0x200019# BASEREL-NEXT: }20# BASEREL-NEXT: ]21 22--- !COFF23header:24 Machine: IMAGE_FILE_MACHINE_ARM6425 Characteristics: []26sections:27 - Name: .text28 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]29 Alignment: 430 SectionData: 0000000031 Relocations:32 - VirtualAddress: 033 SymbolName: __imp_main34 Type: IMAGE_REL_ARM64_ADDR32NB35symbols:36 - Name: .text37 Value: 038 SectionNumber: 139 SimpleType: IMAGE_SYM_TYPE_NULL40 ComplexType: IMAGE_SYM_DTYPE_NULL41 StorageClass: IMAGE_SYM_CLASS_STATIC42 SectionDefinition:43 Length: 444 NumberOfRelocations: 145 NumberOfLinenumbers: 046 CheckSum: 047 Number: 048 Selection: IMAGE_COMDAT_SELECT_ANY49 - Name: main50 Value: 451 SectionNumber: 152 SimpleType: IMAGE_SYM_TYPE_NULL53 ComplexType: IMAGE_SYM_DTYPE_FUNCTION54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL55 - Name: __imp_main56 Value: 057 SectionNumber: 058 SimpleType: IMAGE_SYM_TYPE_NULL59 ComplexType: IMAGE_SYM_DTYPE_FUNCTION60 StorageClass: IMAGE_SYM_CLASS_EXTERNAL61...62