/freebsd-current/libexec/rtld-elf/i386/ |
H A D | reloc.c | 64 const Elf_Rel *rel; local 68 rellim = (const Elf_Rel *)((const char *)dstobj->rel + dstobj->relsize); 69 for (rel = dstobj->rel; rel < rellim; rel++) { 70 if (ELF_R_TYPE(rel->r_info) == R_386_COPY) { 81 dstaddr = (void *)(dstobj->relocbase + rel->r_offset); 82 dstsym = dstobj->symtab + ELF_R_SYM(rel->r_info); 86 req.ventry = fetch_ventry(dstobj, ELF_R_SYM(rel 129 const Elf_Rel *rel; local 285 const Elf_Rel *rel; local 316 const Elf_Rel *rel; local 370 reloc_iresolve_one(Obj_Entry *obj, const Elf_Rel *rel, RtldLockState *lockstate) argument 386 const Elf_Rel *rel; local 403 const Elf_Rel *rel; local 420 const Elf_Rel *rel; local [all...] |
/freebsd-current/contrib/llvm-project/lld/ELF/Arch/ |
H A D | MSP430.cpp | 37 void relocate(uint8_t *loc, const Relocation &rel, 62 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument 63 switch (rel.type) { 65 checkIntUInt(loc, val, 8, rel); 72 checkIntUInt(loc, val, 16, rel); 76 checkIntUInt(loc, val, 32, rel); 81 checkInt(loc, offset, 10, rel); 87 toString(rel.type));
|
H A D | AVR.cpp | 53 void relocate(uint8_t *loc, const Relocation &rel, 119 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument 120 switch (rel.type) { 122 checkUInt(loc, val, 8, rel); 126 checkUInt(loc, val, 32, rel); 130 checkUInt(loc, val, 32, rel); 134 checkUInt(loc, val, 32, rel); 144 checkAlignment(loc, val, 2, rel); 145 checkUInt(loc, val >> 1, 16, rel); 149 checkUInt(loc, val, 32, rel); [all...] |
H A D | SystemZ.cpp | 42 void relocate(uint8_t *loc, const Relocation &rel, 47 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const; 48 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 49 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 50 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 305 void SystemZ::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, argument 326 switch (rel.type) { 340 void SystemZ::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, argument 361 switch (rel.type) { 375 void SystemZ::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, argument 466 relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 481 relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const argument [all...] |
H A D | AArch64.cpp | 50 void relocate(uint8_t *loc, const Relocation &rel, 56 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 57 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 58 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 365 void AArch64::relocate(uint8_t *loc, const Relocation &rel, argument 367 switch (rel.type) { 370 checkIntUInt(loc, val, 16, rel); 375 checkIntUInt(loc, val, 32, rel); 380 checkInt(loc, val, 32, rel); 391 if (rel 539 relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 570 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 602 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 768 needsGotForMemtag(const Relocation &rel) argument 780 const Relocation &rel = sec.relocs()[i]; local [all...] |
H A D | X86_64.cpp | 40 void relocate(uint8_t *loc, const Relocation &rel, 327 for (Relocation &rel : sec->relocs()) { 328 if (rel.expr != R_RELAX_GOT_PC) 331 uint64_t v = sec->getRelocTargetVA(sec->file, rel.type, rel.addend, 333 sec->outSecOff + rel.offset, 334 *rel.sym, rel.expr); 337 if (rel.sym->auxIdx == 0) { 338 rel 459 relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) argument 499 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) argument 581 relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) argument 762 relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 957 relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) argument [all...] |
H A D | PPC.cpp | 50 void relocate(uint8_t *loc, const Relocation &rel, 57 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 58 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 59 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 60 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 317 void PPC::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument 319 std::tie(newType, val) = fromDTPREL(rel.type, val); 322 checkIntUInt(loc, val, 16, rel); 330 checkInt(loc, val, 16, rel); 366 checkInt(loc, val, 16, rel); 408 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 427 relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 443 relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 467 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument [all...] |
H A D | PPC64.cpp | 183 void relocate(uint8_t *loc, const Relocation &rel, 194 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const; 201 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 202 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 203 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 204 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 380 static bool tryRelaxPPC64TocIndirection(const Relocation &rel, argument 383 if (rel.addend < 0) 387 Defined *defSym = dyn_cast<Defined>(rel.sym); 395 config->isLE ? getRelaTocSymAndAddend<ELF64LE>(tocISB, rel 652 relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 716 relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 779 relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 891 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 1259 relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const argument 1512 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument [all...] |
H A D | X86.cpp | 37 void relocate(uint8_t *loc, const Relocation &rel, 283 void X86::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument 284 switch (rel.type) { 289 checkIntUInt(loc, val, 8, rel); 293 checkInt(loc, val, 8, rel); 297 checkIntUInt(loc, val, 16, rel); 311 checkInt(loc, val, 17, rel); 335 checkInt(loc, val, 32, rel); 347 static void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { argument 348 if (rel 382 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) argument 416 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) argument 453 relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) argument [all...] |
H A D | SPARCV9.cpp | 29 void relocate(uint8_t *loc, const Relocation &rel, 87 void SPARCV9::relocate(uint8_t *loc, const Relocation &rel, argument 89 switch (rel.type) { 93 checkUInt(loc, val, 32, rel); 98 checkInt(loc, val, 32, rel); 104 checkInt(loc, val, 32, rel); 109 checkUInt(loc, val, 22, rel); 120 checkUInt(loc, val >> 10, 22, rel); 125 checkInt(loc, val, 21, rel); 144 checkUInt(loc, val >> 42, 22, rel); [all...] |
/freebsd-current/libexec/rtld-elf/arm/ |
H A D | reloc.c | 32 const Elf_Rel *rel; local 36 rellim = (const Elf_Rel *)((const char *) dstobj->rel + dstobj->relsize); 37 for (rel = dstobj->rel; rel < rellim; rel++) { 38 if (ELF_R_TYPE(rel->r_info) == R_ARM_COPY) { 49 dstaddr = (void *)(dstobj->relocbase + rel->r_offset); 50 dstsym = dstobj->symtab + ELF_R_SYM(rel->r_info); 56 ELF_R_SYM(rel 89 const Elf_Rel *rel = NULL, *rellim; local 135 reloc_nonplt_object(Obj_Entry *obj, const Elf_Rel *rel, SymCache *cache, int flags, RtldLockState *lockstate) argument 317 const Elf_Rel *rel; local 354 const Elf_Rel *rel; local 378 const Elf_Rel *rel; local 432 reloc_jmpslot(Elf_Addr *where, Elf_Addr target, const Obj_Entry *defobj __unused, const Obj_Entry *obj __unused, const Elf_Rel *rel) argument [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | kref.h | 69 kref_put(struct kref *kref, void (*rel)(struct kref *kref)) 73 rel(kref); 80 kref_put_lock(struct kref *kref, void (*rel)(struct kref *kref), 86 rel(kref); 94 void (*rel)(struct kref *kref)) 99 rel(kref);
|
/freebsd-current/stand/common/ |
H A D | self_reloc.c | 70 ElfW_Rel *rel; local 82 rel = (ElfW_Rel *)(dynp->d_un.d_ptr + baseaddr); 103 switch (ELFW_R_TYPE(rel->r_info)) { 109 newaddr = (Elf_Addr *)(rel->r_offset + baseaddr); 112 *newaddr = baseaddr + rel->r_addend; 122 rel = (ElfW_Rel *)(void *)((caddr_t) rel + relent);
|
H A D | reloc_elf.c | 59 const Elf_Rel *rel; local 64 rel = (const Elf_Rel *)reldata; 65 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - 68 rtype = ELF_R_TYPE(rel->r_info); 70 symidx = ELF_R_SYM(rel->r_info); 134 const Elf_Rel *rel; 139 rel = (const Elf_Rel *)reldata; 140 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - 143 rtype = ELF_R_TYPE(rel->r_info); 144 symidx = ELF_R_SYM(rel [all...] |
/freebsd-current/libexec/rtld-elf/ |
H A D | debug.c | 80 dump_Elf_Rel(obj, obj->rel, obj->relsize); 105 const Elf_Rel *rel; local 112 for (rel = rel0; rel < rellim; rel++) { 113 dstaddr = (Elf_Addr *)(obj->relocbase + rel->r_offset); 114 sym = obj->symtab + ELF_R_SYM(rel->r_info); 117 (u_long)rel->r_info, (u_long)rel->r_offset,
|
/freebsd-current/usr.sbin/kldxref/ |
H A D | ef_arm.c | 51 const GElf_Rel *rel; local 56 rel = (const GElf_Rel *)reldata; 57 where = (char *)dest + (relbase + rel->r_offset - dataoff); 59 rtype = GELF_R_TYPE(rel->r_info); 60 symidx = GELF_R_SYM(rel->r_info);
|
H A D | ef_i386.c | 50 const GElf_Rel *rel; local 55 rel = (const GElf_Rel *)reldata; 56 where = (char *)dest + (relbase + rel->r_offset - dataoff); 58 rtype = GELF_R_TYPE(rel->r_info); 59 symidx = GELF_R_SYM(rel->r_info);
|
H A D | ef_amd64.c | 50 const GElf_Rel *rel; local 55 rel = (const GElf_Rel *)reldata; 56 where = (char *)dest + (relbase + rel->r_offset - dataoff); 58 rtype = GELF_R_TYPE(rel->r_info); 59 symidx = GELF_R_SYM(rel->r_info);
|
H A D | ef_mips.c | 53 const GElf_Rel *rel; local 58 rel = (const GElf_Rel *)reldata; 59 where = (char *)dest + (relbase + rel->r_offset - dataoff); 61 rtype = GELF_R_TYPE(rel->r_info); 62 symidx = GELF_R_SYM(rel->r_info);
|
/freebsd-current/contrib/ntp/html/hints/ |
H A D | solaris.xtra.patchfreq | 49 rel=`echo utsname+202?s | adb $kernel | cut -d: -f2` 51 if [ ! $rel = "5.5" ] && [ ! $rel = "5.5.1" ]; then
|
/freebsd-current/contrib/llvm-project/lld/ELF/ |
H A D | Target.cpp | 166 for (const Relocation &rel : sec.relocs()) { 167 uint8_t *loc = buf + rel.offset; 169 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, 170 secAddr + rel.offset, *rel.sym, rel.expr), 172 if (rel.expr != R_RELAX_HINT) 173 relocate(loc, rel, val);
|
H A D | Relocations.cpp | 99 void elf::reportRangeError(uint8_t *loc, const Relocation &rel, const Twine &v, argument 103 if (rel.sym) { 104 if (!rel.sym->isSection()) 105 hint = "; references '" + lld::toString(*rel.sym) + '\''; 106 else if (auto *d = dyn_cast<Defined>(rel.sym)) 109 if (config->emachine == EM_X86_64 && rel.type == R_X86_64_PC32 && 110 rel.sym->getOutputSection() && 111 (rel.sym->getOutputSection()->flags & SHF_X86_64_LARGE)) { 118 if (rel.sym && !rel 488 computeMipsAddend(const RelTy &rel, RelExpr expr, bool isLocal) const argument 911 addPltEntry(PltSection &plt, GotPltSection &gotPlt, RelocationBaseSection &rel, RelType type, Symbol &sym) argument 1139 RelType rel = target->getDynRel(type); local 1400 const RelTy &rel = *i; local 1981 getISDThunkSec(OutputSection *os, InputSection *isec, InputSectionDescription *isd, const Relocation &rel, uint64_t src) argument 2142 getThunk(InputSection *isec, Relocation &rel, uint64_t src) argument 2182 normalizeExistingThunk(Relocation &rel, uint64_t src) argument [all...] |
H A D | MarkLive.cpp | 58 void resolveReloc(InputSectionBase &sec, RelTy &rel, bool fromFDE); 77 const typename ELFT::Rel &rel) { 78 return target->getImplicitAddend(sec.content().begin() + rel.r_offset, 79 rel.getType(config->isMips64EL)); 84 const typename ELFT::Rela &rel) { 85 return rel.r_addend; 90 void MarkLive<ELFT>::resolveReloc(InputSectionBase &sec, RelTy &rel, argument 92 Symbol &sym = sec.getFile<ELFT>()->getRelocTargetSym(rel); 104 offset += getAddend<ELFT>(sec, rel); 311 for (const typename ELFT::Rel &rel 76 getAddend(InputSectionBase &sec, const typename ELFT::Rel &rel) argument 83 getAddend(InputSectionBase &sec, const typename ELFT::Rela &rel) argument [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 328 static unsigned RelocType32(const ELFRel &rel) { return rel.r_info & 0x0ff; } argument 331 static unsigned RelocType64(const ELFRel &rel) { argument 332 return rel.r_info & 0xffffffff; 337 static unsigned RelocSymbol32(const ELFRel &rel) { return rel.r_info >> 8; } argument 341 static unsigned RelocSymbol64(const ELFRel &rel) { return rel.r_info >> 32; } argument
|
/freebsd-current/usr.bin/rpcgen/ |
H A D | rpc_cout.c | 136 def->def.ty.rel)); 203 print_ifstat(int indent, const char *prefix, const char *type, relation rel, argument 209 switch (rel) { 326 if (isvectordef (cs->type, cs->rel)) { 333 print_ifstat(2, cs->prefix, cs->type, cs->rel, 345 if (isvectordef (dflt->type, dflt->rel)) { 353 print_ifstat(2, dflt->prefix, dflt->type, dflt->rel, 394 ((dl->decl.rel == REL_ALIAS) || 395 (dl->decl.rel == REL_VECTOR))){ 400 if (dl->decl.rel 604 relation rel = def->def.ty.rel; local 615 relation rel = dec->rel; local 658 emit_single_in_line(int indent, declaration *decl, int flag, relation rel) argument [all...] |