brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 79aaa58 Raw
69 lines · plain
1# REQUIRES: arm2 3# RUN: yaml2obj %s -o %t.obj4# RUN: llvm-objdump --no-print-imm-hex -d %t.obj | FileCheck %s --check-prefix BEFORE5# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj6# RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s --check-prefix AFTER7 8# BEFORE: Disassembly of section .text:9# BEFORE-EMPTY:10# BEFORE:        0: 4770          bx lr11# BEFORE:        2: bf00          nop12# BEFORE:        4: e92d 4800     push.w {r11, lr}13# BEFORE:        8: 46eb          mov r11, sp14# BEFORE:        a: 2020          movs r0, #3215# BEFORE:        c: f000 f800     bl {{.+}} @ imm = #016# BEFORE:       10: 3001          adds r0, #117# BEFORE:       12: e8bd 8800     pop.w {r11, pc}18 19# AFTER: Disassembly of section .text:20# AFTER-EMPTY:21# AFTER:   401000: 4770          bx lr22# AFTER:   401002: bf00          nop23# AFTER:   401004: e92d 4800     push.w {r11, lr}24# AFTER:   401008: 46eb          mov r11, sp25# AFTER:   40100a: 2020          movs r0, #3226# AFTER:   40100c: f7ff fff8     bl 0x401000 <.text>27# AFTER:   401010: 3001          adds r0, #128# AFTER:   401012: e8bd 8800     pop.w {r11, pc}29 30--- !COFF31header:32  Machine:         IMAGE_FILE_MACHINE_ARMNT33  Characteristics: [  ]34sections:35  - Name:            .text36    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]37    Alignment:       438    SectionData:     704700BF2DE90048EB46202000F000F80130BDE8008839    Relocations:40      - VirtualAddress:  1241        SymbolName:      identity42        Type:            IMAGE_REL_ARM_BLX23T43symbols:44  - Name:            .text45    Value:           046    SectionNumber:   147    SimpleType:      IMAGE_SYM_TYPE_NULL48    ComplexType:     IMAGE_SYM_DTYPE_NULL49    StorageClass:    IMAGE_SYM_CLASS_STATIC50    SectionDefinition:51      Length:          2252      NumberOfRelocations: 153      NumberOfLinenumbers: 054      CheckSum:        055      Number:          156  - Name:            identity57    Value:           058    SectionNumber:   159    SimpleType:      IMAGE_SYM_TYPE_NULL60    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION61    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL62  - Name:            function63    Value:           464    SectionNumber:   165    SimpleType:      IMAGE_SYM_TYPE_NULL66    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION67    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL68...69