Home
last modified time | relevance | path

Searched refs:rel (Results 1 – 25 of 184) sorted by relevance

12345678

/freebsd/libexec/rtld-elf/i386/
H A Dreloc.c64 const Elf_Rel *rel; in do_copy_relocations() local
69 for (rel = dstobj->rel; rel < rellim; rel++) { in do_copy_relocations()
129 const Elf_Rel *rel; in reloc_non_plt() local
152 for (rel = obj->rel; rel < rellim; rel++) { in reloc_non_plt()
288 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_plt()
321 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_jmpslots()
386 const Elf_Rel *rel; in reloc_iresolve() local
392 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_iresolve()
403 const Elf_Rel *rel; in reloc_iresolve_nonplt() local
409 for (rel = obj->rel; rel < rellim; rel++) { in reloc_iresolve_nonplt()
[all …]
/freebsd/sys/conf/
H A Dldscript.i38617 .rel.init : { *(.rel.init) }
19 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
21 .rel.fini : { *(.rel.fini) }
23 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
25 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
27 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
29 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
31 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
37 .rel.got : { *(.rel.got) }
39 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
[all …]
H A Dldscript.amd6422 .rel.init : { *(.rel.init) }
24 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
26 .rel.fini : { *(.rel.fini) }
28 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
30 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
32 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
34 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
36 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
42 .rel.got : { *(.rel.got) }
44 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
[all …]
H A Dldscript.riscv35 .rel.text :
36 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
40 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
44 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
47 .rel.got : { *(.rel.got) }
49 .rel.ctors : { *(.rel.ctors) }
51 .rel.dtors : { *(.rel.dtors) }
53 .rel.init : { *(.rel.init) }
55 .rel.fini : { *(.rel.fini) }
57 .rel.bss : { *(.rel.bss) }
[all …]
H A Dldscript.arm34 .rel.text :
35 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
39 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
43 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
46 .rel.got : { *(.rel.got) }
48 .rel.ctors : { *(.rel.ctors) }
50 .rel.dtors : { *(.rel.dtors) }
52 .rel.init : { *(.rel.init) }
54 .rel.fini : { *(.rel.fini) }
56 .rel.bss : { *(.rel.bss) }
[all …]
H A Dldscript.arm6436 .rel.text :
37 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
41 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
45 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
48 .rel.got : { *(.rel.got) }
50 .rel.ctors : { *(.rel.ctors) }
52 .rel.dtors : { *(.rel.dtors) }
54 .rel.init : { *(.rel.init) }
56 .rel.fini : { *(.rel.fini) }
58 .rel.bss : { *(.rel.bss) }
[all …]
/freebsd/libexec/rtld-elf/arm/
H A Dreloc.c32 const Elf_Rel *rel; in do_copy_relocations() local
37 for (rel = dstobj->rel; rel < rellim; rel++) { in do_copy_relocations()
56 ELF_R_SYM(rel->r_info)); in do_copy_relocations()
104 for (; rel < rellim; rel++) { in _rtld_relocate_nonplt_self()
317 const Elf_Rel *rel; in reloc_non_plt() local
336 for (rel = obj->rel; rel < rellim; rel++) { in reloc_non_plt()
354 const Elf_Rel *rel; in reloc_plt() local
358 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_plt()
378 const Elf_Rel *rel; in reloc_jmpslots() local
384 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_jmpslots()
[all …]
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DSystemZ.cpp326 switch (rel.type) { in relaxTlsGdToIe()
361 switch (rel.type) { in relaxTlsGdToLe()
401 switch (rel.type) { in relaxTlsLdToLe()
450 sec->file, rel.type, rel.addend, in relaxOnce()
451 sec->getOutputSection()->addr + rel.offset, *rel.sym, rel.expr); in relaxOnce()
456 addGotEntry(*rel.sym); in relaxOnce()
459 rel.expr = R_GOT_PC; in relaxOnce()
483 switch (rel.expr) { in relocate()
495 switch (rel.type) { in relocate()
509 checkInt(loc, val, 13, rel); in relocate()
[all …]
H A DAVR.cpp120 switch (rel.type) { in relocate()
122 checkUInt(loc, val, 8, rel); in relocate()
126 checkUInt(loc, val, 32, rel); in relocate()
130 checkUInt(loc, val, 32, rel); in relocate()
134 checkUInt(loc, val, 32, rel); in relocate()
154 checkUInt(loc, val, 8, rel); in relocate()
216 checkUInt(loc, val, 7, rel); in relocate()
224 checkUInt(loc, val, 5, rel); in relocate()
228 checkUInt(loc, val, 6, rel); in relocate()
249 checkInt(loc, val, 6, rel); in relocate()
[all …]
H A DAArch64.cpp367 switch (rel.type) { in relocate()
391 if (rel.sym && rel.sym->isTagged() && in relocate()
392 (rel.addend < 0 || in relocate()
393 rel.addend >= static_cast<int64_t>(rel.sym->getSize()))) in relocate()
554 switch (rel.type) { in relaxTlsGdToLe()
584 switch (rel.type) { in relaxTlsGdToIe()
769 return rel.sym->isTagged() && needsGot(rel.expr); in needsGotForMemtag()
783 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, in relocateAlloc()
784 secAddr + rel.offset, *rel.sym, rel.expr); in relocateAlloc()
791 switch (rel.expr) { in relocateAlloc()
[all …]
H A DPPC.cpp330 checkInt(loc, val, 16, rel); in relocate()
366 checkInt(loc, val, 16, rel); in relocate()
410 switch (rel.type) { in relaxTlsGdToIe()
429 switch (rel.type) { in relaxTlsGdToLe()
445 switch (rel.type) { in relaxTlsLdToLe()
460 relocate(loc, rel, val); in relaxTlsLdToLe()
469 switch (rel.type) { in relaxTlsIeToLe()
503 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, in relocateAlloc()
504 secAddr + rel.offset, *rel.sym, rel.expr), in relocateAlloc()
506 switch (rel.expr) { in relocateAlloc()
[all …]
H A DX86_64.cpp331 uint64_t v = sec->getRelocTargetVA(sec->file, rel.type, rel.addend, in relaxOnce()
334 *rel.sym, rel.expr); in relaxOnce()
339 addGotEntry(*rel.sym); in relaxOnce()
342 rel.expr = R_GOT_PC; in relaxOnce()
763 switch (rel.type) { in relocate()
769 checkInt(loc, val, 8, rel); in relocate()
808 if (rel.expr != R_GOT_PC) { in relocate()
809 relaxGot(loc, rel, val); in relocate()
1043 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, in relocateAlloc()
1044 secAddr + rel.offset, *rel.sym, rel.expr); in relocateAlloc()
[all …]
H A DX86.cpp284 switch (rel.type) { in relocate()
293 checkInt(loc, val, 8, rel); in relocate()
311 checkInt(loc, val, 17, rel); in relocate()
335 checkInt(loc, val, 32, rel); in relocate()
348 if (rel.type == R_386_TLS_GD) { in relaxTlsGdToLe()
383 if (rel.type == R_386_TLS_GD) { in relaxTlsGdToIe()
423 if (rel.type == R_386_TLS_IE) { in relaxTlsIeToLe()
491 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, in relocateAlloc()
492 secAddr + rel.offset, *rel.sym, rel.expr), in relocateAlloc()
494 switch (rel.expr) { in relocateAlloc()
[all …]
H A DPPC64.cpp383 if (rel.addend < 0) in tryRelaxPPC64TocIndirection()
653 switch (rel.type) { in relaxGot()
733 switch (rel.type) { in relaxTlsGdToLe()
796 switch (rel.type) { in relaxTlsLdToLe()
913 switch (rel.type) { in relaxTlsIeToLe()
1514 switch (rel.type) { in relaxTlsGdToIe()
1573 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, in relocateAlloc()
1574 secAddr + rel.offset, *rel.sym, rel.expr); in relocateAlloc()
1575 switch (rel.expr) { in relocateAlloc()
1585 if (rel.type == R_PPC64_PCREL_OPT && rel.offset != lastPPCRelaxedRelocOff) in relocateAlloc()
[all …]
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 { in relocate() argument
63 switch (rel.type) { in relocate()
65 checkIntUInt(loc, val, 8, rel); in relocate()
72 checkIntUInt(loc, val, 16, rel); in relocate()
76 checkIntUInt(loc, val, 32, rel); in relocate()
81 checkInt(loc, offset, 10, rel); in relocate()
87 toString(rel.type)); in relocate()
H A DSPARCV9.cpp29 void relocate(uint8_t *loc, const Relocation &rel,
87 void SPARCV9::relocate(uint8_t *loc, const Relocation &rel, in relocate() argument
89 switch (rel.type) { in relocate()
93 checkUInt(loc, val, 32, rel); in relocate()
98 checkInt(loc, val, 32, rel); in relocate()
104 checkInt(loc, val, 32, rel); in relocate()
109 checkUInt(loc, val, 22, rel); in relocate()
120 checkUInt(loc, val >> 10, 22, rel); in relocate()
125 checkInt(loc, val, 21, rel); in relocate()
144 checkUInt(loc, val >> 42, 22, rel); in relocate()
[all …]
H A DARM.cpp488 if (rel.sym->isFunc()) in encodeLdrGroup()
497 checkUInt(loc, imm, 12, rel); in encodeLdrGroup()
506 if (rel.sym->isFunc()) in encodeLdrsGroup()
515 checkUInt(loc, imm, 8, rel); in encodeLdrsGroup()
521 switch (rel.type) { in relocate()
557 stateChangeWarning(loc, rel.type, *rel.sym); in relocate()
612 if (!rel.sym->isFunc() && !rel.sym->isInPlt() && isBlx == bit0Thumb) in relocate()
613 stateChangeWarning(loc, rel.type, *rel.sym); in relocate()
614 if (rel.sym->isFunc() || rel.sym->isInPlt() ? !bit0Thumb : isBlx) { in relocate()
756 if (rel.sym->isFunc()) in relocate()
[all …]
H A DRISCV.cpp338 switch (rel.type) { in relocate()
347 checkInt(loc, val, 9, rel); in relocate()
381 checkInt(loc, imm, 6, rel); in relocate()
426 checkInt(loc, hi, 20, rel); in relocate()
551 switch (rel.type) { in tlsdescToIe()
571 switch (rel.type) { in tlsdescToLe()
606 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, in relocateAlloc()
607 secAddr + rel.offset, *rel.sym, rel.expr); in relocateAlloc()
609 switch (rel.expr) { in relocateAlloc()
662 auto val = rel.sym->getVA(rel.addend) - rel1.sym->getVA(rel1.addend); in relocateAlloc()
[all …]
/freebsd/contrib/llvm-project/lld/ELF/
H A DRelocations.cpp103 if (rel.sym) { in reportRangeError()
118 if (rel.sym && !rel.sym->isSection()) in reportRangeError()
863 while (rel != static_cast<const RelTy *>(end) && rel->r_offset == offset) in getMipsN32RelType()
1400 const RelTy &rel = *i; in scanOne() local
2184 if (target->inBranchRange(rel.type, src, rel.sym->getVA(rel.addend))) in normalizeExistingThunk()
2189 rel.expr = toPlt(rel.expr); in normalizeExistingThunk()
2244 if (!target->needsThunk(rel.expr, rel.type, isec->file, src, in createThunks()
2245 *rel.sym, rel.addend)) in createThunks()
2265 rel.expr = fromPlt(rel.expr); in createThunks()
2271 rel.addend = -getPCBias(rel.type); in createThunks()
[all …]
H A DTarget.cpp166 for (const Relocation &rel : sec.relocs()) { in relocateAlloc() local
167 uint8_t *loc = buf + rel.offset; in relocateAlloc()
169 sec.getRelocTargetVA(sec.file, rel.type, rel.addend, in relocateAlloc()
170 secAddr + rel.offset, *rel.sym, rel.expr), in relocateAlloc()
172 if (rel.expr != R_RELAX_HINT) in relocateAlloc()
173 relocate(loc, rel, val); in relocateAlloc()
/freebsd/libexec/rtld-elf/
H A Ddebug.c80 dump_Elf_Rel(obj, obj->rel, obj->relsize); in dump_obj_relocations()
105 const Elf_Rel *rel; in dump_Elf_Rel() local
112 for (rel = rel0; rel < rellim; rel++) { in dump_Elf_Rel()
113 dstaddr = (Elf_Addr *)(obj->relocbase + rel->r_offset); in dump_Elf_Rel()
114 sym = obj->symtab + ELF_R_SYM(rel->r_info); in dump_Elf_Rel()
117 (u_long)rel->r_info, (u_long)rel->r_offset, in dump_Elf_Rel()
/freebsd/stand/common/
H A Dself_reloc.c70 ElfW_Rel *rel; in self_reloc() local
82 rel = (ElfW_Rel *)(dynp->d_un.d_ptr + baseaddr); in self_reloc()
103 switch (ELFW_R_TYPE(rel->r_info)) { in self_reloc()
109 newaddr = (Elf_Addr *)(rel->r_offset + baseaddr); in self_reloc()
112 *newaddr = baseaddr + rel->r_addend; in self_reloc()
122 rel = (ElfW_Rel *)(void *)((caddr_t) rel + relent); in self_reloc()
H A Dreloc_elf.c59 const Elf_Rel *rel; in __elfN() local
64 rel = (const Elf_Rel *)reldata; in __elfN()
65 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
68 rtype = ELF_R_TYPE(rel->r_info); in __elfN()
70 symidx = ELF_R_SYM(rel->r_info); in __elfN()
134 const Elf_Rel *rel; in __elfN()
139 rel = (const Elf_Rel *)reldata; in __elfN()
140 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
143 rtype = ELF_R_TYPE(rel->r_info); in __elfN()
144 symidx = ELF_R_SYM(rel->r_info); in __elfN()
/freebsd/usr.bin/rpcgen/
H A Drpc_cout.c136 def->def.ty.rel)); in print_header()
209 switch (rel) { in print_ifstat()
400 if (dl->decl.rel == REL_ALIAS) in inline_struct()
544 if (dl->decl.rel == REL_VECTOR && in emit_struct()
560 if (dl->decl.rel == REL_ALIAS) in emit_struct()
604 relation rel = def->def.ty.rel; in emit_typedef() local
615 relation rel = dec->rel; in print_stat() local
618 if (isvectordef(type, rel)) { in print_stat()
632 switch (decl->rel) { in emit_inline()
666 if (rel == REL_ALIAS) in emit_single_in_line()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkref.h69 kref_put(struct kref *kref, void (*rel)(struct kref *kref)) in kref_put()
73 rel(kref); in kref_put()
80 kref_put_lock(struct kref *kref, void (*rel)(struct kref *kref), in kref_put_lock()
86 rel(kref); in kref_put_lock()
94 void (*rel)(struct kref *kref)) in kref_sub()
99 rel(kref); in kref_sub()

12345678