brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.1 KiB · 5d26978 Raw
97 lines · yaml
1# REQUIRES: aarch642 3# RUN: yaml2obj %s -o %t.obj4# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib /alternatename:__delayLoadHelper2=main /delayload:library.dll5# RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s --check-prefix DISASM6# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s -check-prefix IMPORTS7 8# DISASM:  140001014:      d0000011        adrp    x17, 0x1400030009# DISASM:  140001018:      91002231        add     x17, x17, #810# DISASM:  14000101c:      14000001        b       0x140001020 <.text+0x20>11# DISASM:  140001020:      a9b27bfd        stp     x29, x30, [sp, #-224]!12# DISASM:  140001024:      910003fd        mov     x29, sp13# DISASM:  140001028:      a90107e0        stp     x0, x1, [sp, #16]14# DISASM:  14000102c:      a9020fe2        stp     x2, x3, [sp, #32]15# DISASM:  140001030:      a90317e4        stp     x4, x5, [sp, #48]16# DISASM:  140001034:      a9041fe6        stp     x6, x7, [sp, #64]17# DISASM:  140001038:      f9002be8        str     x8,     [sp, #80]18# DISASM:  14000103c:      ad0307e0        stp     q0, q1, [sp, #96]19# DISASM:  140001040:      ad040fe2        stp     q2, q3, [sp, #128]20# DISASM:  140001044:      ad0517e4        stp     q4, q5, [sp, #160]21# DISASM:  140001048:      ad061fe6        stp     q6, q7, [sp, #192]22# DISASM:  14000104c:      aa1103e1        mov     x1, x1723# DISASM:  140001050:      b0000000        adrp    x0, 0x14000200024# DISASM:  140001054:      91000000        add     x0, x0, #025# DISASM:  140001058:      90000002        adrp    x2, 0x140001000 <.text>26# DISASM:  14000105c:      91000042        add     x2, x2, #027# DISASM:  140001060:      d63f0040        blr     x228# DISASM:  140001064:      aa0003f0        mov     x16, x029# DISASM:  140001068:      ad461fe6        ldp     q6, q7, [sp, #192]30# DISASM:  14000106c:      ad4517e4        ldp     q4, q5, [sp, #160]31# DISASM:  140001070:      ad440fe2        ldp     q2, q3, [sp, #128]32# DISASM:  140001074:      ad4307e0        ldp     q0, q1, [sp, #96]33# DISASM:  140001078:      f9402be8        ldr     x8,     [sp, #80]34# DISASM:  14000107c:      a9441fe6        ldp     x6, x7, [sp, #64]35# DISASM:  140001080:      a94317e4        ldp     x4, x5, [sp, #48]36# DISASM:  140001084:      a9420fe2        ldp     x2, x3, [sp, #32]37# DISASM:  140001088:      a94107e0        ldp     x0, x1, [sp, #16]38# DISASM:  14000108c:      a8ce7bfd        ldp     x29, x30, [sp], #22439# DISASM:  140001090:      d61f0200        br      x1640 41# IMPORTS: Format: COFF-ARM6442# IMPORTS: Arch: aarch6443# IMPORTS: AddressSize: 64bit44# IMPORTS: DelayImport {45# IMPORTS:   Name: library.dll46# IMPORTS:   Attributes: 0x147# IMPORTS:   ModuleHandle: 0x300048# IMPORTS:   ImportAddressTable: 0x300849# IMPORTS:   ImportNameTable: 0x204050# IMPORTS:   BoundDelayImportTable: 0x051# IMPORTS:   UnloadDelayImportTable: 0x052# IMPORTS:   Import {53# IMPORTS:     Symbol: function (0)54# IMPORTS:     Address: 0x14000101455# IMPORTS:   }56# IMPORTS: }57 58--- !COFF59header:60  Machine:         IMAGE_FILE_MACHINE_ARM6461  Characteristics: [  ]62sections:63  - Name:            .text64    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]65    Alignment:       466    SectionData:     00000094C0035FD667    Relocations:68      - VirtualAddress:  069        SymbolName:      function70        Type:            IMAGE_REL_ARM64_BRANCH2671symbols:72  - Name:            .text73    Value:           074    SectionNumber:   175    SimpleType:      IMAGE_SYM_TYPE_NULL76    ComplexType:     IMAGE_SYM_DTYPE_NULL77    StorageClass:    IMAGE_SYM_CLASS_STATIC78    SectionDefinition:79      Length:          880      NumberOfRelocations: 181      NumberOfLinenumbers: 082      CheckSum:        083      Number:          184  - Name:            main85    Value:           086    SectionNumber:   187    SimpleType:      IMAGE_SYM_TYPE_NULL88    ComplexType:     IMAGE_SYM_DTYPE_NULL89    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL90  - Name:            function91    Value:           092    SectionNumber:   093    SimpleType:      IMAGE_SYM_TYPE_NULL94    ComplexType:     IMAGE_SYM_DTYPE_NULL95    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL96...97