2015-08-06 03:40:07 +08:00
|
|
|
# RUN: yaml2obj < %s > %t.obj
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-08-06 03:40:07 +08:00
|
|
|
# RUN: llvm-objdump -s %t.exe | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: .text:
|
|
|
|
# CHECK: 402000 01104000 00000000 00000000 00000000
|
|
|
|
# CHECK: 402010 01100000 00000000 00000000 00000000
|
2016-08-06 02:20:31 +08:00
|
|
|
# CHECK: 402020 41f20009 c0f24009 00000000 00000000
|
2015-08-06 03:40:07 +08:00
|
|
|
# CHECK: 402030 fe07e62f 00000000 00000000 00000000
|
|
|
|
# CHECK: 402040 3e04de2f 00000000 00000000 00000000
|
|
|
|
# CHECK: 402050 fe07d62f 00000000 00000000 00000000
|
2016-08-06 01:28:21 +08:00
|
|
|
# CHECK: 402060 fef0cef7 00000000 00000000 00000000
|
2016-09-28 03:27:17 +08:00
|
|
|
# CHECK: 402070 00005000 00000000 00000000 00000000
|
2015-08-06 03:40:07 +08:00
|
|
|
|
2016-06-28 04:17:08 +08:00
|
|
|
--- !COFF
|
2015-08-06 03:40:07 +08:00
|
|
|
header:
|
|
|
|
Machine: IMAGE_FILE_MACHINE_ARMNT
|
|
|
|
Characteristics: []
|
|
|
|
sections:
|
|
|
|
- Name: .aaa
|
|
|
|
Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
|
|
|
|
Alignment: 4096
|
|
|
|
SectionData: 0000000000000000
|
|
|
|
- Name: .text
|
|
|
|
Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
|
|
|
|
Alignment: 4096
|
2016-09-28 03:27:17 +08:00
|
|
|
SectionData: 00000000000000000000000000000000000000000000000000000000000000004ff6ff79cff6ff79000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f000f800000000000000000000000000000000000000000000000000000000
|
2015-08-06 03:40:07 +08:00
|
|
|
Relocations:
|
|
|
|
- VirtualAddress: 0
|
|
|
|
SymbolName: foo
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_ADDR32
|
2015-08-06 03:40:07 +08:00
|
|
|
- VirtualAddress: 16
|
|
|
|
SymbolName: foo
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_ADDR32NB
|
2015-08-06 03:40:07 +08:00
|
|
|
- VirtualAddress: 32
|
|
|
|
SymbolName: foo
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_MOV32T
|
2015-08-06 03:40:07 +08:00
|
|
|
- VirtualAddress: 48
|
|
|
|
SymbolName: foo
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_BRANCH24T
|
2015-08-06 03:40:07 +08:00
|
|
|
- VirtualAddress: 64
|
|
|
|
SymbolName: foo
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_BRANCH20T
|
2015-08-06 03:40:07 +08:00
|
|
|
- VirtualAddress: 80
|
|
|
|
SymbolName: foo
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_BLX23T
|
2016-08-06 01:28:21 +08:00
|
|
|
- VirtualAddress: 96
|
|
|
|
SymbolName: bar
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_BRANCH24T
|
2016-09-28 03:27:17 +08:00
|
|
|
- VirtualAddress: 112
|
|
|
|
SymbolName: bar
|
2017-11-06 15:22:17 +08:00
|
|
|
Type: IMAGE_REL_ARM_SECREL
|
2015-08-06 03:40:07 +08:00
|
|
|
symbols:
|
|
|
|
- Name: .aaa
|
|
|
|
Value: 0
|
|
|
|
SectionNumber: 1
|
|
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
StorageClass: IMAGE_SYM_CLASS_STATIC
|
|
|
|
- Name: .text
|
|
|
|
Value: 0
|
|
|
|
SectionNumber: 2
|
|
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
StorageClass: IMAGE_SYM_CLASS_STATIC
|
|
|
|
- Name: main
|
|
|
|
Value: 0
|
|
|
|
SectionNumber: 1
|
|
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
|
|
|
- Name: foo
|
|
|
|
Value: 0
|
|
|
|
SectionNumber: 1
|
|
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2016-08-06 01:28:21 +08:00
|
|
|
- Name: bar
|
|
|
|
Value: 0x500000
|
|
|
|
SectionNumber: 1
|
|
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2015-08-06 03:40:07 +08:00
|
|
|
...
|