/freebsd-11-stable/usr.sbin/kldxref/ |
H A D | ef_amd64.c | 51 Elf_Addr addend, addr; local 60 addend = 0; 67 addend = rela->r_addend; 83 addend = *(Elf32_Addr *)where; 86 addend = *where; 96 val = addr + addend; 101 val32 = (Elf32_Addr)(addr + addend); 110 addr = (Elf_Addr)addend + relbase;
|
H A D | ef_i386.c | 49 Elf_Addr *where, addr, addend; local 59 addend = 0; 66 addend = rela->r_addend; 78 addend = *where; 82 addr = (Elf_Addr)addend + relbase; 87 addr += addend;
|
H A D | ef_aarch64.c | 50 Elf_Addr *where, addend; local 59 addend = rela->r_addend; 68 *where = relbase + addend;
|
H A D | ef_powerpc.c | 52 Elf_Addr *where, addend; local 61 addend = rela->r_addend; 70 *where = relbase + addend;
|
/freebsd-11-stable/stand/common/ |
H A D | reloc_elf.c | 82 Elf_Addr addend, addr; 92 addend = 0; 95 addend = 0; 101 addend = rela->r_addend; 113 addend = *where; 125 val = addr + addend; 129 addr = (Elf_Addr)addend + relbase; 143 Elf_Addr addend, addr, *where, val; 153 addend = 0; 156 addend [all...] |
/freebsd-11-stable/sys/mips/mips/ |
H A D | elf_machdep.c | 171 /* Process one elf relocation with addend. */ 178 Elf_Addr addend = (Elf_Addr)0; local 198 addend = *(Elf64_Addr *)where; 201 addend = *where; 209 addend = rela->r_addend; 225 addr += addend; 235 addend &= 0x03ffffff; 240 addend <<= 2; 242 addr += ((Elf_Addr)where & 0xf0000000) | addend; 253 addr += addend; [all...] |
/freebsd-11-stable/contrib/binutils/gas/ |
H A D | literal.c | 45 add_to_literal_pool (sym, addend, sec, size) 47 valueT addend; 68 if (fixp->fx_addsy == sym && fixp->fx_offset == addend) 87 fix_new (frag_now, p - frag_now->fr_literal, size, sym, addend, 0,
|
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/ |
H A D | ArchHandler_x86.cpp | 96 Reference::Addend *addend) override; 107 Reference::Addend *addend) override; 259 Reference::Addend *addend) { 269 *addend = fixupAddress + 4 + (int32_t)*(const little32_t *)fixupContent; 276 return atomFromAddress(reloc.symbol, targetAddress, target, addend); 283 if (auto ec = atomFromAddress(0, reloc.value, target, addend)) 285 *addend = targetAddress - reloc.value; 292 *addend = fixupAddress + 2 + (int16_t)*(const little16_t *)fixupContent; 299 return atomFromAddress(reloc.symbol, targetAddress, target, addend); 306 if (auto ec = atomFromAddress(0, reloc.value, target, addend)) 251 getReferenceInfo(const Relocation &reloc, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool swap, FindAtomBySectionAndAddress atomFromAddress, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument 348 getPairReferenceInfo(const normalized::Relocation &reloc1, const normalized::Relocation &reloc2, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool swap, bool scatterable, FindAtomBySectionAndAddress atomFromAddr, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument [all...] |
H A D | ArchHandler_arm64.cpp | 145 Reference::Addend *addend) override; 156 Reference::Addend *addend) override; 382 const lld::Atom **target, Reference::Addend *addend) { 390 *addend = 0; 397 *addend = 0; 404 *addend = 0; 411 *addend = 0; 418 *addend = 0; 425 *addend = 0; 432 *addend 377 getReferenceInfo( const Relocation &reloc, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool isBig, FindAtomBySectionAndAddress atomFromAddress, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument 472 getPairReferenceInfo( const normalized::Relocation &reloc1, const normalized::Relocation &reloc2, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool swap, bool scatterable, FindAtomBySectionAndAddress atomFromAddress, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument [all...] |
H A D | ArchHandler_x86_64.cpp | 153 Reference::Addend *addend) override; 164 Reference::Addend *addend) override; 404 Reference::Addend *addend) { 415 *addend = *(const little32_t *)fixupContent; 420 *addend = (int32_t)*(const little32_t *)fixupContent + 1; 425 *addend = (int32_t)*(const little32_t *)fixupContent + 2; 430 *addend = (int32_t)*(const little32_t *)fixupContent + 4; 434 return atomFromAddress(reloc.symbol, targetAddress, target, addend); 437 return atomFromAddress(reloc.symbol, targetAddress, target, addend); 440 return atomFromAddress(reloc.symbol, targetAddress, target, addend); 396 getReferenceInfo(const Relocation &reloc, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool swap, FindAtomBySectionAndAddress atomFromAddress, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument 473 getPairReferenceInfo(const normalized::Relocation &reloc1, const normalized::Relocation &reloc2, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool swap, bool scatterable, FindAtomBySectionAndAddress atomFromAddress, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument [all...] |
H A D | ArchHandler_arm.cpp | 90 Reference::Addend *addend) override; 101 Reference::Addend *addend) override; 512 // We need to undo that so it does not look like an addend. 529 const lld::Atom **target, Reference::Addend *addend) { 543 // Instruction contains branch to addend. 545 *addend = fixupAddress + 4 + displacement; 555 return atomFromAddress(reloc.symbol, targetAddress, target, addend); 564 if (auto ec = atomFromAddress(0, reloc.value, target, addend)) 567 // to atom+addend. 568 *addend 524 getReferenceInfo( const Relocation &reloc, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool isBig, FindAtomBySectionAndAddress atomFromAddress, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument 636 getPairReferenceInfo(const normalized::Relocation &reloc1, const normalized::Relocation &reloc2, const DefinedAtom *inAtom, uint32_t offsetInAtom, uint64_t fixupAddress, bool isBig, bool scatterable, FindAtomBySectionAndAddress atomFromAddr, FindAtomBySymbolIndex atomFromSymbolIndex, Reference::KindValue *kind, const lld::Atom **target, Reference::Addend *addend) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/lld/ELF/ |
H A D | Thunks.h | 31 Thunk(Symbol &destination, int64_t addend); 60 int64_t addend; member in class:lld::elf::Thunk 73 const InputFile *file, int64_t addend);
|
H A D | Thunks.cpp | 52 AArch64ABSLongThunk(Symbol &dest, int64_t addend) : Thunk(dest, addend) {} argument 60 AArch64ADRPThunk(Symbol &dest, int64_t addend) : Thunk(dest, addend) {} argument 244 // For R_PPC_PLTREL24, Thunk::addend records the addend which will be used to 248 : Thunk(dest, rel.addend), file(isec.file) {} 261 PPC32LongThunk(Symbol &dest, int64_t addend) : Thunk(dest, addend) {} argument 298 PPC64LongBranchThunk(Symbol &dest, int64_t addend) argument 303 PPC64PILongBranchThunk(Symbol &dest, int64_t addend) argument 318 PPC64PDLongBranchThunk(Symbol &dest, int64_t addend) argument 717 writePPC32PltCallStub(uint8_t *buf, uint64_t gotPltVA, const InputFile *file, int64_t addend) argument [all...] |
H A D | Relocations.cpp | 136 int64_t addend, RelExpr expr) { 139 c.relocations.push_back({expr, type, offset, addend, &sym}); 144 c.relocations.push_back({expr, type, offset, addend, &sym}); 160 typename ELFT::uint offset, int64_t addend, RelExpr expr) { 165 return handleMipsTlsRelocation(type, sym, c, offset, addend, expr); 176 c.relocations.push_back({expr, type, offset, addend, &sym}); 203 offset, addend, &sym}); 216 c.relocations.push_back({expr, type, offset, addend, &sym}); 224 offset, addend, &sym}); 237 c.relocations.push_back({expr, type, offset, addend, 134 handleMipsTlsRelocation(RelType type, Symbol &sym, InputSectionBase &c, uint64_t offset, int64_t addend, RelExpr expr) argument 159 handleTlsRelocation(RelType type, Symbol &sym, InputSectionBase &c, typename ELFT::uint offset, int64_t addend, RelExpr expr) argument 632 int64_t addend; local 1005 addRelativeReloc(InputSectionBase *isec, uint64_t offsetInSec, Symbol *sym, int64_t addend, RelExpr expr, RelType type) argument 1099 processRelocAux(InputSectionBase &sec, RelExpr expr, RelType type, uint64_t offset, Symbol &sym, const RelTy &rel, int64_t addend) argument 1298 int64_t addend = computeAddend<ELFT>(rel, end, sec, expr, sym.isLocal()); local 1826 int64_t addend = rel.addend + getPCBias(rel.type); local [all...] |
/freebsd-11-stable/sys/amd64/amd64/ |
H A D | elf_machdep.c | 183 /* Process one elf relocation with addend. */ 191 Elf_Addr addend; local 208 addend = *(Elf32_Addr *)where; 211 addend = *where; 218 addend = rela->r_addend; 232 val = addr + addend; 244 val32 = (Elf32_Addr)(addr + addend - (Elf_Addr)where); 253 val32 = (Elf32_Addr)(addr + addend); 271 case R_X86_64_JMP_SLOT: /* XXX need addend + offset */ 280 addr = relocbase + addend; [all...] |
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | coff-alpha.c | 654 rptr->addend = 0; 669 rptr->addend = 0; 671 rptr->addend = - (intern->r_vaddr + 4); 676 /* Copy the gp value for this object file into the addend, to 679 rptr->addend += ecoff_data (abfd)->gp; 685 addend, but they do use a special code. Put this code in the 686 addend field. */ 687 rptr->addend = intern->r_size; 692 them in the addend. */ 694 rptr->addend 954 bfd_vma addend; local 1536 bfd_vma addend; local 1805 stack[tos - 1] >>= addend; local [all...] |
H A D | elf32-score.c | 87 /* If abfd != NULL && symndx != -1, the addend of the relocation 89 bfd_vma addend; member in union:score_got_entry::__anon219 97 corresponding to this symbol+addend. If it's a global symbol 240 bfd_vma addend = 0, offset = 0; local 246 addend = bfd_get_32 (abfd, (bfd_byte *) data + reloc_entry->address); 247 offset = ((((addend >> 16) & 0x3) << 15) | (addend & 0x7fff)) >> 1; 248 val = reloc_entry->addend; 256 addend = (addend 534 bfd_vma addend = 0, offset = 0; local 1591 score_elf_record_local_got_symbol(bfd *abfd, long symndx, bfd_vma addend, struct score_got_info *g) argument 1753 bfd_signed_vma addend; local 1853 bfd_vma addend; local 2272 bfd_vma addend, value; local [all...] |
H A D | reloc.c | 106 . {* addend for relocation value. *} 107 . bfd_vma addend; 146 o <<addend>> 148 The <<addend>> is a value provided by the back end to be added (!) 188 0x12340000 in their addend field. The data would consist of: 200 it to the addend to get the original offset, and then adds the 308 . data section of the addend. The relocation function will 332 . {* Some formats record a relocation addend in the section contents 336 . addend is recorded with the section contents; when performing a 339 . recorded with the relocation (in arelent.addend); whe 1334 _bfd_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd, asection *input_section, bfd_byte *contents, bfd_vma address, bfd_vma value, bfd_vma addend) argument [all...] |
H A D | coff-i386.c | 91 ORIG is the negative of reloc_entry->addend, which is set by 96 diff = symbol->value + reloc_entry->addend; 99 diff = reloc_entry->addend; 105 ignores the addend for a COFF target when producing 107 COFF, so we handle the addend here instead. */ 123 diff = reloc_entry->addend - symbol->value; 125 diff = -reloc_entry->addend; 129 diff = reloc_entry->addend; 363 /* Compute the addend of a reloc. If the reloc is to a common symbol, 369 symbol from the original file, and uses it to set the addend valu [all...] |
/freebsd-11-stable/sys/powerpc/powerpc/ |
H A D | elf32_machdep.c | 180 /* Process one elf relocation with addend. */ 188 Elf_Addr addend; local 201 addend = rela->r_addend; 218 *where = elf_relocaddr(lf, addr + addend); 226 * addend values are sometimes relative to sections 230 if (addr > relocbase && addr <= (relocbase + addend)) 232 addr = elf_relocaddr(lf, addr + addend); 241 * addend values are sometimes relative to sections 245 if (addr > relocbase && addr <= (relocbase + addend)) 247 addr = elf_relocaddr(lf, addr + addend); [all...] |
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | elf_machdep.c | 143 Elf_Addr *where, addr, addend; local 153 addend = *where; 160 addend = rela->r_addend; 170 *where = elf_relocaddr(lf, relocbase + addend); 184 *where = addr + addend; 201 /* Process one elf relocation with addend. */
|
/freebsd-11-stable/sys/i386/i386/ |
H A D | elf_machdep.c | 170 /* Process one elf relocation with addend. */ 177 Elf_Addr addend; local 187 addend = *where; 194 addend = rela->r_addend; 204 addr = elf_relocaddr(lf, relocbase + addend); 220 addr += addend; 229 addr += addend - (Elf_Addr)where; 255 addr = relocbase + addend;
|
/freebsd-11-stable/contrib/jemalloc/src/ |
H A D | nstime.c | 55 nstime_add(nstime_t *time, const nstime_t *addend) argument 58 assert(UINT64_MAX - time->ns >= addend->ns); 60 time->ns += addend->ns;
|
/freebsd-11-stable/contrib/binutils/gas/config/ |
H A D | tc-mep.c | 92 has only 16 bits of space to store an addend. This means that in 1284 int addend, rn, bit = 0; 1289 addend = target_address_for (fragP) - (fragP->fr_address + where); 1329 fragP->fr_opcode[0^e] = 0xb0 | ((addend >> 8) & 0x0f); 1330 fragP->fr_opcode[1^e] = 0x01 | (addend & 0xfe); 1336 fragP->fr_opcode[0^e] = 0xd8 | ((addend >> 5) & 0x07); 1337 fragP->fr_opcode[1^e] = 0x09 | ((addend << 3) & 0xf0); 1338 fragP->fr_opcode[2^e] = 0x00 | ((addend >>16) & 0xff); 1339 fragP->fr_opcode[3^e] = 0x00 | ((addend >> 8) & 0xff); 1344 fragP->fr_opcode[0^e] = 0xb0 | ((addend >> 1281 int addend, rn, bit = 0; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldImpl.h | 129 /// Addend - the relocation addend encoded in the instruction itself. Also 154 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) argument 155 : SectionID(id), Offset(offset), RelType(type), Addend(addend), 158 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, argument 160 : SectionID(id), Offset(offset), RelType(type), Addend(addend), 164 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, argument 166 : SectionID(id), Offset(offset), RelType(type), Addend(addend), 169 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, argument 173 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), 179 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, argument [all...] |