Searched refs:rel (Results 1 - 25 of 123) sorted by relevance

12345

/freebsd-current/libexec/rtld-elf/i386/
H A Dreloc.c64 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 DMSP430.cpp37 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 DAVR.cpp53 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 DSystemZ.cpp42 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 DAArch64.cpp50 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 DX86_64.cpp40 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 DPPC.cpp50 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 DPPC64.cpp183 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 DX86.cpp37 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 DSPARCV9.cpp29 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 Dreloc.c32 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 Dkref.h69 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 Dself_reloc.c70 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 Dreloc_elf.c59 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 Ddebug.c80 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 Def_arm.c51 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 Def_i386.c50 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 Def_amd64.c50 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 Def_mips.c53 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 Dsolaris.xtra.patchfreq49 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 DTarget.cpp166 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 DRelocations.cpp99 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 DMarkLive.cpp58 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 DELFHeader.h328 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 Drpc_cout.c136 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...]

Completed in 263 milliseconds

12345