Home | History | Annotate | Download | only in Targets

Lines Matching refs:Value

75     RelocationValueRef Value(
79 makeValueAddendPCRel(Value, RelI, 8);
82 processBranchRelocation(RE, Value, Stubs);
84 RE.Addend = Value.Offset;
85 if (Value.SymbolName)
86 addRelocationForSymbol(RE, Value.SymbolName);
88 addRelocationForSection(RE, Value.SectionID);
94 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override {
95 DEBUG(dumpRelocationToResolve(RE, Value));
99 // If the relocation is PC-relative, the value to be encoded is the
103 Value -= FinalAddress;
107 Value -= 8;
114 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size);
117 // Mask the value into the target address. We know instructions are
119 Value += RE.Addend;
120 // The low two bits of the value are not encoded.
121 Value >>= 2;
122 // Mask the value to 24 bits.
123 uint64_t FinalValue = Value & 0xffffff;
128 // Insert the value into the instruction.
137 assert((Value == SectionABase || Value == SectionBBase) &&
138 "Unexpected HALFSECTDIFF relocation value.");
139 Value = SectionABase - SectionBBase + RE.Addend;
141 Value = (Value >> 16);
142 Value &= 0xffff;
145 Insn = (Insn & 0xfff0f000) | ((Value & 0xf000) << 4) | (Value & 0x0fff);
175 const RelocationValueRef &Value,
180 RuntimeDyldMachO::StubMap::const_iterator i = Stubs.find(Value);
186 Stubs[Value] = Section.getStubOffset();
191 MachO::GENERIC_RELOC_VANILLA, Value.Offset, false, 2);
192 if (Value.SymbolName)
193 addRelocationForSymbol(StubRE, Value.SymbolName);
195 addRelocationForSection(StubRE, Value.SectionID);