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

12345

/freebsd-13-stable/libexec/rtld-elf/i386/
H A Dreloc.c66 const Elf_Rel *rel; local
70 rellim = (const Elf_Rel *)((const char *)dstobj->rel + dstobj->relsize);
71 for (rel = dstobj->rel; rel < rellim; rel++) {
72 if (ELF_R_TYPE(rel->r_info) == R_386_COPY) {
83 dstaddr = (void *)(dstobj->relocbase + rel->r_offset);
84 dstsym = dstobj->symtab + ELF_R_SYM(rel->r_info);
88 req.ventry = fetch_ventry(dstobj, ELF_R_SYM(rel
131 const Elf_Rel *rel; local
287 const Elf_Rel *rel; local
318 const Elf_Rel *rel; local
372 reloc_iresolve_one(Obj_Entry *obj, const Elf_Rel *rel, RtldLockState *lockstate) argument
388 const Elf_Rel *rel; local
405 const Elf_Rel *rel; local
422 const Elf_Rel *rel; local
[all...]
/freebsd-13-stable/contrib/llvm-project/lld/ELF/Arch/
H A DAVR.cpp48 void relocate(uint8_t *loc, const Relocation &rel,
70 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument
71 switch (rel.type) {
73 checkUInt(loc, val, 8, rel);
83 checkAlignment(loc, val, 2, rel);
84 checkUInt(loc, val >> 1, 16, rel);
88 checkUInt(loc, val, 32, rel);
93 checkUInt(loc, val, 8, rel);
123 checkAlignment(loc, val, 2, rel);
127 checkAlignment(loc, val, 2, rel);
[all...]
H A DMSP430.cpp38 void relocate(uint8_t *loc, const Relocation &rel,
63 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument
64 switch (rel.type) {
66 checkIntUInt(loc, val, 8, rel);
73 checkIntUInt(loc, val, 16, rel);
77 checkIntUInt(loc, val, 32, rel);
82 checkInt(loc, offset, 10, rel);
88 toString(rel.type));
H A DAArch64.cpp47 void relocate(uint8_t *loc, const Relocation &rel,
51 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
53 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
55 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
319 void AArch64::relocate(uint8_t *loc, const Relocation &rel, argument
321 switch (rel.type) {
324 checkIntUInt(loc, val, 16, rel);
329 checkIntUInt(loc, val, 32, rel);
333 checkInt(loc, val, 32, rel);
347 checkInt(loc, val, 33, rel);
470 relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
501 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
533 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
[all...]
H A DPPC.cpp46 void relocate(uint8_t *loc, const Relocation &rel,
51 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
53 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
55 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
57 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
295 void PPC::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument
297 std::tie(newType, val) = fromDTPREL(rel.type, val);
300 checkIntUInt(loc, val, 16, rel);
308 checkInt(loc, val, 16, rel);
344 checkInt(loc, val, 16, rel);
386 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
405 relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
421 relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
445 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
[all...]
H A DSPARCV9.cpp30 void relocate(uint8_t *loc, const Relocation &rel,
89 void SPARCV9::relocate(uint8_t *loc, const Relocation &rel, argument
91 switch (rel.type) {
95 checkUInt(loc, val, 32, rel);
100 checkInt(loc, val, 32, rel);
106 checkInt(loc, val, 32, rel);
111 checkUInt(loc, val, 22, rel);
122 checkUInt(loc, val >> 10, 22, rel);
127 checkInt(loc, val, 21, rel);
146 checkUInt(loc, val >> 42, 22, rel);
[all...]
H A DPPC64.cpp237 bool elf::tryRelaxPPC64TocIndirection(const Relocation &rel, uint8_t *bufLoc) { argument
239 if (rel.addend < 0)
243 Defined *defSym = dyn_cast<Defined>(rel.sym);
251 config->isLE ? getRelaTocSymAndAddend<ELF64LE>(tocISB, rel.addend)
252 : getRelaTocSymAndAddend<ELF64BE>(tocISB, rel.addend);
268 target->relaxGot(bufLoc, rel, tocRelative + ppc64TocOffset);
286 void relocate(uint8_t *loc, const Relocation &rel,
296 void relaxGot(uint8_t *loc, const Relocation &rel,
298 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
300 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
466 relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
487 relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
527 relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
593 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
879 relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
1118 relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const argument
[all...]
H A DAMDGPU.cpp28 void relocate(uint8_t *loc, const Relocation &rel,
61 void AMDGPU::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { argument
62 switch (rel.type) {
/freebsd-13-stable/libexec/rtld-elf/arm/
H A Dreloc.c74 const Elf_Rel *rel; local
78 rellim = (const Elf_Rel *)((const char *) dstobj->rel + dstobj->relsize);
79 for (rel = dstobj->rel; rel < rellim; rel++) {
80 if (ELF_R_TYPE(rel->r_info) == R_ARM_COPY) {
91 dstaddr = (void *)(dstobj->relocbase + rel->r_offset);
92 dstsym = dstobj->symtab + ELF_R_SYM(rel->r_info);
98 ELF_R_SYM(rel
131 const Elf_Rel *rel = NULL, *rellim; local
179 reloc_nonplt_object(Obj_Entry *obj, const Elf_Rel *rel, SymCache *cache, int flags, RtldLockState *lockstate) argument
358 const Elf_Rel *rel; local
395 const Elf_Rel *rel; local
419 const Elf_Rel *rel; local
473 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-13-stable/sys/compat/linuxkpi/common/include/linux/
H A Dkref.h71 kref_put(struct kref *kref, void (*rel)(struct kref *kref))
75 rel(kref);
82 kref_put_lock(struct kref *kref, void (*rel)(struct kref *kref),
88 rel(kref);
96 void (*rel)(struct kref *kref))
101 rel(kref);
/freebsd-13-stable/stand/common/
H A Dself_reloc.c73 ElfW_Rel *rel; local
85 rel = (ElfW_Rel *)(dynp->d_un.d_ptr + baseaddr);
106 switch (ELFW_R_TYPE(rel->r_info)) {
112 newaddr = (Elf_Addr *)(rel->r_offset + baseaddr);
115 *newaddr = baseaddr + rel->r_addend;
125 rel = (ElfW_Rel *)(void *)((caddr_t) rel + relent);
H A Dreloc_elf.c60 const Elf_Rel *rel; local
65 rel = (const Elf_Rel *)reldata;
66 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset -
69 rtype = ELF_R_TYPE(rel->r_info);
70 symidx = ELF_R_SYM(rel->r_info);
131 const Elf_Rel *rel;
136 rel = (const Elf_Rel *)reldata;
137 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset -
140 rtype = ELF_R_TYPE(rel->r_info);
141 symidx = ELF_R_SYM(rel
[all...]
/freebsd-13-stable/libexec/rtld-elf/
H A Ddebug.c82 dump_Elf_Rel(obj, obj->rel, obj->relsize);
107 const Elf_Rel *rel; local
114 for (rel = rel0; rel < rellim; rel++) {
115 dstaddr = (Elf_Addr *)(obj->relocbase + rel->r_offset);
116 sym = obj->symtab + ELF_R_SYM(rel->r_info);
119 (u_long)rel->r_info, (u_long)rel->r_offset,
/freebsd-13-stable/contrib/llvm-project/lld/MachO/Arch/
H A DX86_64.cpp45 const relocation_info &rel) {
46 return ("invalid relocation at offset " + std::to_string(rel.r_address) +
53 const relocation_info &rel,
55 if (std::find(validLengths.begin(), validLengths.end(), rel.r_length) !=
59 std::string msg = getErrorLocation(mb, sec, rel) + ": relocations of type " +
60 std::to_string(rel.r_type) + " must have r_length of ";
72 const relocation_info &rel) const {
74 const uint8_t *loc = buf + sec.offset + rel.r_address;
75 switch (rel.r_type) {
79 validateLength(mb, sec, rel, {
44 getErrorLocation(MemoryBufferRef mb, const section_64 &sec, const relocation_info &rel) argument
52 validateLength(MemoryBufferRef mb, const section_64 &sec, const relocation_info &rel, const std::vector<uint8_t> &validLengths) argument
[all...]
/freebsd-13-stable/usr.sbin/kldxref/
H A Def_i386.c51 const Elf_Rel *rel; local
57 rel = (const Elf_Rel *)reldata;
58 where = (Elf_Addr *)(dest + relbase + rel->r_offset - dataoff);
60 rtype = ELF_R_TYPE(rel->r_info);
61 symidx = ELF_R_SYM(rel->r_info);
H A Def_mips.c53 const Elf_Rel *rel; local
60 rel = (const Elf_Rel *)reldata;
61 where = (Elf_Addr *)((char *)dest + relbase + rel->r_offset -
64 rtype = ELF_R_TYPE(rel->r_info);
65 symidx = ELF_R_SYM(rel->r_info);
H A Def_amd64.c53 const Elf_Rel *rel; local
58 rel = (const Elf_Rel *)reldata;
59 where = (Elf_Addr *)(dest + relbase + rel->r_offset - dataoff);
61 rtype = ELF_R_TYPE(rel->r_info);
62 symidx = ELF_R_SYM(rel->r_info);
/freebsd-13-stable/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-13-stable/libexec/rtld-elf/mips/
H A Dreloc.c114 const Elf_Rel *rel; local
129 rellim = (const Elf_Rel *)((const char *)dstobj->rel + dstobj->relsize);
130 for (rel = dstobj->rel; rel < rellim; rel++) {
131 if (ELF_R_TYPE(rel->r_info) != R_MIPS_COPY)
134 dstaddr = (void *)(dstobj->relocbase + rel->r_offset);
135 dstsym = dstobj->symtab + ELF_R_SYM(rel->r_info);
140 req.ventry = fetch_ventry(dstobj, ELF_R_SYM(rel
219 const Elf_Rel *rel = NULL, *rellim; local
346 const Elf_Rel *rel; local
658 const Elf_Rel *rel; local
687 const Elf_Rel *rel; local
744 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-13-stable/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-13-stable/contrib/llvm-project/lld/ELF/
H A DTarget.h85 virtual void relocate(uint8_t *loc, const Relocation &rel,
153 virtual void relaxGot(uint8_t *loc, const Relocation &rel,
155 virtual void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
157 virtual void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
159 virtual void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
161 virtual void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
200 bool tryRelaxPPC64TocIndirection(const Relocation &rel, uint8_t *bufLoc);
225 void reportRangeError(uint8_t *loc, const Relocation &rel, const Twine &v,
229 inline void checkInt(uint8_t *loc, int64_t v, int n, const Relocation &rel) { argument
231 reportRangeError(loc, rel, Twin
235 checkUInt(uint8_t *loc, uint64_t v, int n, const Relocation &rel) argument
241 checkIntUInt(uint8_t *loc, uint64_t v, int n, const Relocation &rel) argument
250 checkAlignment(uint8_t *loc, uint64_t v, int n, const Relocation &rel) argument
[all...]
H A DRelocations.cpp99 void elf::reportRangeError(uint8_t *loc, const Relocation &rel, const Twine &v, argument
103 if (rel.sym && !rel.sym->isLocal())
104 hint = "; references " + lld::toString(*rel.sym) +
105 getDefinedLocation(*rel.sym);
111 errorOrWarn(errPlace.loc + "relocation " + lld::toString(rel.type) +
536 // Reserve space in .bss or .bss.rel.ro for copy relocation.
585 // memory protection by reserving space in the .bss.rel.ro section.
588 make<BssSection>(isRO ? ".bss.rel.ro" : ".bss", symSize, ss.alignment);
614 static int64_t computeMipsAddend(const RelTy &rel, cons argument
649 computeAddend(const RelTy &rel, const RelTy *end, InputSectionBase &sec, RelExpr expr, bool isLocal) argument
970 getMipsN32RelType(RelTy *&rel, RelTy *end) argument
1047 addPltEntry(PltSection *plt, GotPltSection *gotPlt, RelocationBaseSection *rel, RelType type, Symbol &sym) argument
1120 processRelocAux(InputSectionBase &sec, RelExpr expr, RelType type, uint64_t offset, Symbol &sym, const RelTy &rel, int64_t addend) argument
1138 RelType rel = target->getDynRel(type); local
1267 const RelTy &rel = *i; local
1858 getThunk(InputSection *isec, Relocation &rel, uint64_t src) argument
1894 normalizeExistingThunk(Relocation &rel, uint64_t src) argument
[all...]
H A DInputSection.cpp413 for (const RelTy &rel : rels) {
414 RelType type = rel.getType(config->isMips64EL);
416 Symbol &sym = file->getRelocTargetSym(rel);
422 p->r_addend = getAddend<ELFT>(rel);
426 p->r_offset = sec->getVA(rel.r_offset);
464 int64_t addend = getAddend<ELFT>(rel);
465 const uint8_t *bufLoc = sec->data().begin() + rel.r_offset;
488 sec->relocations.push_back({R_ABS, type, rel.r_offset, addend, &sym});
867 for (const RelTy &rel : rels) {
868 RelType type = rel
1278 const RelTy &rel = rels[relocI]; local
[all...]
H A DMarkLive.cpp59 void resolveReloc(InputSectionBase &sec, RelTy &rel, bool isLSDA);
78 const typename ELFT::Rel &rel) {
79 return target->getImplicitAddend(sec.data().begin() + rel.r_offset,
80 rel.getType(config->isMips64EL));
85 const typename ELFT::Rela &rel) {
86 return rel.r_addend;
91 void MarkLive<ELFT>::resolveReloc(InputSectionBase &sec, RelTy &rel, argument
93 Symbol &sym = sec.getFile<ELFT>()->getRelocTargetSym(rel);
105 offset += getAddend<ELFT>(sec, rel);
278 for (const typename ELFT::Rela &rel
77 getAddend(InputSectionBase &sec, const typename ELFT::Rel &rel) argument
84 getAddend(InputSectionBase &sec, const typename ELFT::Rela &rel) argument
[all...]
/freebsd-13-stable/usr.bin/rpcgen/
H A Drpc_cout.c146 def->def.ty.rel));
213 print_ifstat(int indent, const char *prefix, const char *type, relation rel, argument
219 switch (rel) {
336 if (isvectordef (cs->type, cs->rel)) {
343 print_ifstat(2, cs->prefix, cs->type, cs->rel,
355 if (isvectordef (dflt->type, dflt->rel)) {
363 print_ifstat(2, dflt->prefix, dflt->type, dflt->rel,
404 ((dl->decl.rel == REL_ALIAS) ||
405 (dl->decl.rel == REL_VECTOR))){
410 if (dl->decl.rel
614 relation rel = def->def.ty.rel; local
625 relation rel = dec->rel; local
668 emit_single_in_line(int indent, declaration *decl, int flag, relation rel) argument
[all...]

Completed in 241 milliseconds

12345