1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-jitlink -noexec -abs __ImageBase=0xfff00000 \
3 # RUN: -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \
6 # Check IMAGE_REL_AMD64_ADDR32NB relocation properly sets the delta of target
9 # jitlink-check: *{4}(pdata) = func - __ImageBase
12 Machine: IMAGE_FILE_MACHINE_AMD64
16 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18 SectionData: '0000000000000000'
20 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
22 SectionData: '0000000000000000'
24 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
26 SectionData: '0000000000000000'
30 Type: IMAGE_REL_AMD64_ADDR32NB
35 SimpleType: IMAGE_SYM_TYPE_NULL
36 ComplexType: IMAGE_SYM_DTYPE_NULL
37 StorageClass: IMAGE_SYM_CLASS_STATIC
40 NumberOfRelocations: 0
42 NumberOfLinenumbers: 0
47 SimpleType: IMAGE_SYM_TYPE_NULL
48 ComplexType: IMAGE_SYM_DTYPE_NULL
49 StorageClass: IMAGE_SYM_CLASS_STATIC
52 NumberOfRelocations: 0
54 NumberOfLinenumbers: 0
59 SimpleType: IMAGE_SYM_TYPE_NULL
60 ComplexType: IMAGE_SYM_DTYPE_NULL
61 StorageClass: IMAGE_SYM_CLASS_STATIC
64 NumberOfRelocations: 1
66 NumberOfLinenumbers: 0
71 SimpleType: IMAGE_SYM_TYPE_NULL
72 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
73 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
77 SimpleType: IMAGE_SYM_TYPE_NULL
78 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
79 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
83 SimpleType: IMAGE_SYM_TYPE_NULL
84 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
85 StorageClass: IMAGE_SYM_CLASS_EXTERNAL