1 // Verify the .fix data section conveys the right offsets and the right relocations
2 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o - | llvm-readobj -relocations -expand-relocs -sections -section-data | FileCheck %s --check-prefix=READOBJ
64 // READOBJ: Name: .fix (2E 66 69 78 00 00 00 00)
65 // READOBJ: VirtualSize: 0x0
66 // READOBJ: VirtualAddress: 0x0
67 // READOBJ: RawDataSize: 56
68 // READOBJ: PointerToRawData: 0xEC
69 // READOBJ: PointerToRelocations: 0x124
70 // READOBJ: PointerToLineNumbers: 0x0
71 // READOBJ: RelocationCount: 6
72 // READOBJ: LineNumberCount: 0
73 // READOBJ: Characteristics [ (0xC0500040)
74 // READOBJ: IMAGE_SCN_ALIGN_16BYTES (0x500000)
75 // READOBJ: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
76 // READOBJ: IMAGE_SCN_MEM_READ (0x40000000)
77 // READOBJ: IMAGE_SCN_MEM_WRITE (0x80000000)
79 // READOBJ: SectionData (
80 // READOBJ: 0000: 10000000 00000000 0C000000 00000000 |................|
81 // READOBJ: 0010: 08000000 00000000 0C000000 00000000 |................|
82 // READOBJ: 0020: 01020000 00000000 00010000 00000000 |................|
83 // READOBJ: 0030: 0C000000 00000000 |........|
87 // READOBJ: Relocations [
88 // READOBJ: Section (5) .fix {
89 // READOBJ: Relocation {
90 // READOBJ: Offset: 0x0
91 // READOBJ: Type: IMAGE_REL_AMD64_REL32 (4)
92 // READOBJ: Symbol: .rdata
94 // READOBJ: Relocation {
95 // READOBJ: Offset: 0x8
96 // READOBJ: Type: IMAGE_REL_AMD64_REL32 (4)
97 // READOBJ: Symbol: .rdata
99 // READOBJ: Relocation {
100 // READOBJ: Offset: 0x10
101 // READOBJ: Type: IMAGE_REL_AMD64_REL32 (4)
102 // READOBJ: Symbol: .rdata
104 // READOBJ: Relocation {
105 // READOBJ: Offset: 0x18
106 // READOBJ: Type: IMAGE_REL_AMD64_REL32 (4)
107 // READOBJ: Symbol: .rdata
109 // READOBJ: Relocation {
110 // READOBJ: Offset: 0x1C
111 // READOBJ: Type: IMAGE_REL_AMD64_ADDR32NB (3)
112 // READOBJ: Symbol: g3
114 // READOBJ: Relocation {
115 // READOBJ: Offset: 0x30
116 // READOBJ: Type: IMAGE_REL_AMD64_REL32 (4)
117 // READOBJ: Symbol: .rdata