Home
last modified time | relevance | path

Searched full:addend (Results 1 – 25 of 244) sorted by relevance

12345678910

/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DRelocationResolver.cpp57 uint64_t LocData, int64_t Addend) { in resolveX86_64()
64 return S + Addend; in resolveX86_64()
67 return S + Addend - Offset; in resolveX86_64()
70 return (S + Addend) & 0xFFFFFFFF; in resolveX86_64()
90 uint64_t /*LocData*/, int64_t Addend) { in resolveAArch64()
93 return (S + Addend) & 0xFFFFFFFF; in resolveAArch64()
95 return S + Addend; in resolveAArch64()
97 return (S + Addend - Offset) & 0xFFFF; in resolveAArch64()
99 return (S + Addend - Offset) & 0xFFFFFFFF; in resolveAArch64()
101 return S + Addend in resolveAArch64()
58 resolveX86_64(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t LocData,int64_t Addend) resolveX86_64() argument
91 resolveAArch64(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveAArch64() argument
143 resolveMips64(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveMips64() argument
169 resolveMSP430(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveMSP430() argument
193 resolvePPC64(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolvePPC64() argument
219 resolveSystemZ(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveSystemZ() argument
243 resolveSparc64(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveSparc64() argument
279 resolveAmdgpu(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveAmdgpu() argument
325 resolvePPC32(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolvePPC32() argument
346 resolveARM(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t LocData,int64_t Addend) resolveARM() argument
372 resolveAVR(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveAVR() argument
388 resolveLanai(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveLanai() argument
425 resolveSparc32(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t LocData,int64_t Addend) resolveSparc32() argument
436 resolveHexagon(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t,int64_t Addend) resolveHexagon() argument
468 resolveRISCV(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t LocData,int64_t Addend) resolveRISCV() argument
523 resolveCSKY(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t LocData,int64_t Addend) resolveCSKY() argument
557 resolveLoongArch(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t LocData,int64_t Addend) resolveLoongArch() argument
746 resolveWasm64(uint64_t Type,uint64_t Offset,uint64_t S,uint64_t LocData,int64_t Addend) resolveWasm64() argument
868 int64_t Addend = 0; resolveRelocation() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOAArch64.h33 /// Extract the addend encoded in the instruction / memory location.
38 int64_t Addend = 0; in decodeAddend() local
83 Addend = *reinterpret_cast<support::ulittle32_t *>(LocalAddress); in decodeAddend()
85 Addend = *reinterpret_cast<support::ulittle64_t *>(LocalAddress); in decodeAddend()
94 // Get the 26 bit addend encoded in the branch instruction and sign-extend in decodeAddend()
97 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend()
98 Addend = SignExtend64(Addend, 28); in decodeAddend()
107 // Get the 21 bit addend encoded in the adrp instruction and sign-extend in decodeAddend()
110 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend()
111 Addend = SignExtend64(Addend, 33); in decodeAddend()
[all …]
H A DRuntimeDyldELFMips.cpp18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
31 uint64_t Addend) { in evaluateRelocation() argument
35 Addend, RE.SymOffset, RE.SectionID); in evaluateRelocation()
110 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument
117 << format("%x", Type) << " Addend: 0x" in evaluateMIPS64Relocation()
118 << format("%llx", Addend) in evaluateMIPS64Relocation()
132 return Value + Addend; in evaluateMIPS64Relocation()
134 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
[all …]
H A DRuntimeDyldCOFFAArch64.h102 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
110 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
129 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
135 Addend = 0; in generateRelocationStub()
139 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
168 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
169 uint64_t Addend = 0; in processRelocationRef() local
197 Addend = read32le(Displacement); in processRelocationRef()
201 Addend in processRelocationRef()
[all...]
H A DRuntimeDyldCOFFX86_64.h50 void write32BitOffset(uint8_t *Target, int64_t Addend, uint64_t Delta) { in write32BitOffset() argument
51 uint64_t Result = Addend + Delta; in write32BitOffset()
84 // the symbol resides (RE.Addend provides additional information about the
104 uint64_t Result = Value + RE.Addend; in resolveRelocation()
120 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation()
126 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
131 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && "Relocation overflow"); in resolveRelocation()
132 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && "Relocation underflow"); in resolveRelocation()
133 writeBytesUnaligned(RE.Addend, Target, 4); in resolveRelocation()
152 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub()
145 generateRelocationStub(unsigned SectionID,StringRef TargetName,uint64_t Offset,uint64_t RelType,uint64_t Addend,StubMap & Stubs) generateRelocationStub() argument
210 uint64_t Addend = 0; processRelocationRef() local
[all...]
H A DRuntimeDyldCOFFThumb.h104 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
105 uint64_t Addend = 0; in processRelocationRef()
114 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
126 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
163 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
170 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
183 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
189 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in resolveRelocation()
198 TargetOffset + Addend, tru in resolveRelocation()
83 uint64_t Addend = 0; processRelocationRef() local
[all...]
H A DRuntimeDyldCOFFI386.h78 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
79 uint64_t Addend = 0; in processRelocationRef() local
89 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
102 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
117 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
130 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
156 RE.Addend); in resolveRelocation()
170 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
186 Result = Result - Section.getLoadAddress() + RE.Addend in resolveRelocation()
[all...]
H A DRuntimeDyldMachOI386.h67 RE.Addend = memcpyAddend(RE); in processRelocationRef()
82 // Value.Addend += RelocAddr + 4; in processRelocationRef()
87 RE.Addend = Value.Offset; in processRelocationRef()
110 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
118 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
160 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local
193 // Compute the addend 'C' from the original expression 'A - B + C'. in processSECTDIFFRelocation()
194 Addend -= AddrA - AddrB; in processSECTDIFFRelocation()
197 << ", AddrB: " << AddrB << ", Addend: " << Addend in processSECTDIFFRelocation()
201 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
H A DRuntimeDyldMachOX86_64.h50 RE.Addend = memcpyAddend(RE); in processRelocationRef()
75 RE.Addend = Value.Offset; in processRelocationRef()
108 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
115 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
133 Value.Offset -= RE.Addend; in processGOTRelocation()
152 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
169 int64_t Addend = in processSubtractRelocation() local
195 Addend += SecB.getAddress(); in processSubtractRelocation()
221 Addend -= SecA.getAddress(); in processSubtractRelocation()
224 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A Driscv.h30 /// Fixup <= Target + Addend : uint32
37 /// Fixup <- Target + Addend : uint32
44 /// Fixup <- (Target - Fixup + Addend)
51 /// Fixup <- Target - Fixup + Addend
58 /// Fixup <- (Target - Fixup + Addend)
64 /// Fixup <- (Target - Fixup + Addend)
70 /// Fixup <- (GOT - Fixup + Addend) >> 12
76 /// Fixup <- (Target - Fixup + Addend + 0x800) >> 12
82 /// Fixup <- (Target - Fixup + Addend) & 0xFFF
88 /// Fixup <- (Target - Fixup + Addend)
[all...]
H A Dloongarch.h29 /// Fixup <- Target + Addend : uint64
36 /// Fixup <- Target + Addend : uint32
50 /// Fixup <- (Target - Fixup + Addend) >> 2 : int26
71 /// Fixup <- Target - Fixup + Addend : int32
84 /// Fixup <- Fixup - Target + Addend : int32
97 /// Fixup <- Target - Fixup + Addend : int64
105 /// Fixup <- (((Target + Addend + ((Target + Addend) & 0x800)) & ~0xfff)
122 /// Fixup <- ((Target + Addend) >> Shift) & 0xfff : int12
130 /// the GOT entry for the edge's current target, maintaining the same addend
180 int64_t Addend = E.getAddend(); applyFixup() local
[all...]
H A Dx86_64.h29 /// Fixup <- Target + Addend : uint64
36 /// Fixup <- Target + Addend : uint32
47 /// Fixup <- Target + Addend : int32
57 /// Fixup <- Target + Addend : uint16
68 /// Fixup <- Target + Addend : uint8
81 /// Fixup <- Target - Fixup + Addend : int64
90 /// Fixup <- Target - Fixup + Addend : int32
103 /// Fixup <- Target - Fixup + Addend : int8
116 /// Fixup <- Fixup - Target + Addend : int64
125 /// Fixup <- Fixup - Target + Addend : int32
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp261 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
270 Value += Addend; in resolveX86_64Relocation()
279 Value += Addend; in resolveX86_64Relocation()
290 Value + Addend; in resolveX86_64Relocation()
291 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
297 Value += Addend; in resolveX86_64Relocation()
310 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
318 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
327 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
344 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation()
[all …]
H A DRuntimeDyldImpl.h122 /// Addend - the relocation addend encoded in the instruction itself. Also
124 int64_t Addend; variable
153 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) in RelocationEntry() argument
154 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry()
157 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
159 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry()
163 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
165 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry()
168 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
171 : Offset(offset), Addend(SectionAOffset - SectionBOffset + addend), in RelocationEntry()
[all …]
H A DRuntimeDyldELF.h29 uint64_t Value, uint32_t Type, int64_t Addend,
33 uint64_t Value, uint32_t Type, int64_t Addend,
37 uint32_t Value, uint32_t Type, int32_t Addend);
40 uint64_t Value, uint32_t Type, int64_t Addend);
49 uint32_t Value, uint32_t Type, int32_t Addend);
52 uint64_t Value, uint32_t Type, int64_t Addend);
55 uint64_t Value, uint32_t Type, int64_t Addend);
58 uint64_t Value, uint32_t Type, int64_t Addend);
61 uint64_t Value, uint32_t Type, int64_t Addend);
202 int64_t Addend);
[all...]
/freebsd/contrib/llvm-project/lld/ELF/
H A DThunks.cpp57 AArch64Thunk(Symbol &dest, int64_t addend) : Thunk(dest, addend) {} in AArch64Thunk() argument
69 AArch64ABSLongThunk(Symbol &dest, int64_t addend) in AArch64ABSLongThunk() argument
70 : AArch64Thunk(dest, addend) {} in AArch64ABSLongThunk()
80 AArch64ADRPThunk(Symbol &dest, int64_t addend) : AArch64Thunk(dest, addend) {} in AArch64ADRPThunk() argument
98 ARMThunk(Symbol &dest, int64_t addend) : Thunk(dest, addend) {} in ARMThunk() argument
128 ThumbThunk(Symbol &dest, int64_t addend) : Thunk(dest, addend) { in ThumbThunk() argument
153 ARMV7ABSLongThunk(Symbol &dest, int64_t addend) : ARMThunk(dest, addend) {} in ARMV7ABSLongThunk() argument
162 ARMV7PILongThunk(Symbol &dest, int64_t addend) : ARMThunk(dest, addend) {} in ARMV7PILongThunk() argument
171 ThumbV7ABSLongThunk(Symbol &dest, int64_t addend) in ThumbV7ABSLongThunk() argument
172 : ThumbThunk(dest, addend) {} in ThumbV7ABSLongThunk()
[all …]
H A DSyntheticSections.h196 void addEntry(InputFile &file, Symbol &sym, int64_t addend, RelExpr expr);
201 int64_t addend) const;
203 int64_t addend) const;
242 // GOT using 16-bit index. Each unique Symbol-Addend pair has its own
312 // Symbol and addend.
329 // Maps from Symbol+Addend pair or just Symbol to the GOT entry index.
413 /// be nullptr) and uses #addend as the result of computeAddend().
416 /// only used to compute the addend with InputSection::getRelocTargetVA().
420 /// symbol table and uses #addend as the value of computeAddend().
423 /// symbol table and uses InputSection::getRelocTargetVA() + #addend for the
[all …]
/freebsd/stand/common/
H A Dreloc_elf.c54 Elf_Addr addend, addr; in __elfN() local
67 addend = 0; in __elfN()
72 addend = 0; in __elfN()
78 addend = rela->r_addend; in __elfN()
92 addend = *where; in __elfN()
109 addr = (Elf_Addr)addend + relbase; in __elfN()
121 val = addr + addend; in __elfN()
132 Elf_Addr addend, addr, *where, val; in __elfN()
142 addend = 0; in __elfN()
145 addend = 0; in __elfN()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCOFF_x86_64.cpp89 int64_t Addend = 0; in addSingleRelocation() local
100 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
105 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
110 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
111 Addend -= 1; in addSingleRelocation()
116 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
117 Addend -= 2; in addSingleRelocation()
122 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
123 Addend -= 3; in addSingleRelocation()
128 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
[all …]
H A DMachO_x86_64.cpp121 // returns the edge kind and addend to be used.
182 uint64_t Addend; in parsePairRelocation() local
211 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
217 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
220 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
293 // The target symbol and addend will be populated by the switch below. in addRelocations()
295 uint64_t Addend = 0; in addRelocations() local
310 Addend = *(const little32_t *)FixupContent; in addRelocations()
318 Addend = *(const little32_t *)FixupContent - 4; in addRelocations()
326 Addend = *(const little32_t *)FixupContent; in addRelocations()
[all …]
H A DMachO_arm64.cpp129 // returns the edge kind and addend to be used.
191 uint64_t Addend; in parsePairRelocation() local
220 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
226 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
229 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
306 // The target symbol and addend will be populated by the switch below. in addRelocations()
308 uint64_t Addend = 0; in addRelocations() local
311 // If this is an Addend relocation then process it and move to the in addRelocations()
314 Addend = SignExtend64(RI.r_symbolnum, 24); in addRelocations()
318 return make_error<JITLinkError>("Unpaired Addend reloc at " + in addRelocations()
[all …]
/freebsd/lib/libkldelf/
H A Def_amd64.c48 GElf_Addr addr, addend; in ef_amd64_reloc() local
57 addend = 0; in ef_amd64_reloc()
64 addend = rela->r_addend; in ef_amd64_reloc()
76 /* Addend is 32 bit on 32 bit relocs */ in ef_amd64_reloc()
80 addend = le32dec(where); in ef_amd64_reloc()
83 addend = le64dec(where); in ef_amd64_reloc()
92 addr = EF_SYMADDR(ef, symidx) + addend; in ef_amd64_reloc()
96 addr = EF_SYMADDR(ef, symidx) + addend; in ef_amd64_reloc()
104 addr = relbase + addend; in ef_amd64_reloc()
H A Def_mips.c51 GElf_Addr addr, addend; in ef_mips_reloc() local
60 addend = 0; in ef_mips_reloc()
67 addend = rela->r_addend; in ef_mips_reloc()
81 addend = le64dec(where); in ef_mips_reloc()
83 addend = be64dec(where); in ef_mips_reloc()
86 addend = le32dec(where); in ef_mips_reloc()
88 addend = be32dec(where); in ef_mips_reloc()
94 addr = EF_SYMADDR(ef, symidx) + addend; in ef_mips_reloc()
101 addr = EF_SYMADDR(ef, symidx) + addend; in ef_mips_reloc()
/freebsd/lib/libc/gen/
H A Drand48.366 the addend c = 0xb = 11.
123 All functions share the same multiplicand and addend.
135 Additionally, the constant multiplicand and addend of the algorithm are
149 the constant multiplicand and addend of the algorithm are
161 allows full control over the multiplicand and addend used in
176 multiplicand; and the last short is used to initialize the addend.
177 It is thus not possible to use values greater than 0xffff as the addend.
180 always also set the multiplicand and addend for any of the six
/freebsd/sys/amd64/amd64/
H A Delf_machdep.c274 /* Process one elf relocation with addend. */
282 Elf_Addr addend; in elf_reloc_internal() local
294 /* Addend is 32 bit on 32 bit relocs */ in elf_reloc_internal()
299 addend = *(Elf32_Addr *)where; in elf_reloc_internal()
302 addend = *where; in elf_reloc_internal()
309 addend = rela->r_addend; in elf_reloc_internal()
330 val = addr + addend; in elf_reloc_internal()
342 val32 = (Elf32_Addr)(addr + addend - (Elf_Addr)where); in elf_reloc_internal()
351 val32 = (Elf32_Addr)(addr + addend); in elf_reloc_internal()
369 case R_X86_64_JMP_SLOT: /* XXX need addend + offset */ in elf_reloc_internal()
[all …]

12345678910