Lines Matching refs:rel

65 	const Elf_Rel *rel;  in do_copy_relocations()  local
69 rellim = (const Elf_Rel *)((const char *)dstobj->rel + dstobj->relsize); in do_copy_relocations()
70 for (rel = dstobj->rel; rel < rellim; rel++) { in do_copy_relocations()
71 if (ELF_R_TYPE(rel->r_info) == R_386_COPY) { in do_copy_relocations()
82 dstaddr = (void *)(dstobj->relocbase + rel->r_offset); in do_copy_relocations()
83 dstsym = dstobj->symtab + ELF_R_SYM(rel->r_info); in do_copy_relocations()
88 ELF_R_SYM(rel->r_info)); in do_copy_relocations()
134 const Elf_Rel *rel; in reloc_non_plt() local
157 rellim = (const Elf_Rel *)((const char *)obj->rel + obj->relsize); in reloc_non_plt()
158 for (rel = obj->rel; rel < rellim; rel++) { in reloc_non_plt()
159 switch (ELF_R_TYPE(rel->r_info)) { in reloc_non_plt()
167 def = find_symdef(ELF_R_SYM(rel->r_info), obj, &defobj, in reloc_non_plt()
172 switch (ELF_R_TYPE(rel->r_info)) { in reloc_non_plt()
203 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_non_plt()
205 switch (ELF_R_TYPE(rel->r_info)) { in reloc_non_plt()
260 if (ELF_R_TYPE(rel->r_info) == R_386_TLS_TPOFF) in reloc_non_plt()
277 obj->path, ELF_R_TYPE(rel->r_info)); in reloc_non_plt()
292 const Elf_Rel *rel; in reloc_plt() local
295 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_plt()
298 switch (ELF_R_TYPE(rel->r_info)) { in reloc_plt()
301 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_plt()
311 ELF_R_TYPE(rel->r_info)); in reloc_plt()
323 const Elf_Rel *rel; in reloc_jmpslots() local
328 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_jmpslots()
333 switch (ELF_R_TYPE(rel->r_info)) { in reloc_jmpslots()
335 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_jmpslots()
336 def = find_symdef(ELF_R_SYM(rel->r_info), obj, &defobj, in reloc_jmpslots()
345 reloc_jmpslot(where, target, defobj, obj, rel); in reloc_jmpslots()
353 ELF_R_TYPE(rel->r_info)); in reloc_jmpslots()
365 const Obj_Entry *refobj __unused, const Elf_Rel *rel __unused) in reloc_jmpslot()
374 reloc_iresolve_one(Obj_Entry *obj, const Elf_Rel *rel, RtldLockState *lockstate) in reloc_iresolve_one() argument
378 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_iresolve_one()
389 const Elf_Rel *rel; in reloc_iresolve() local
395 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_iresolve()
396 if (ELF_R_TYPE(rel->r_info) == R_386_IRELATIVE) in reloc_iresolve()
397 reloc_iresolve_one(obj, rel, lockstate); in reloc_iresolve()
406 const Elf_Rel *rel; in reloc_iresolve_nonplt() local
411 rellim = (const Elf_Rel *)((const char *)obj->rel + obj->relsize); in reloc_iresolve_nonplt()
412 for (rel = obj->rel; rel < rellim; rel++) { in reloc_iresolve_nonplt()
413 if (ELF_R_TYPE(rel->r_info) == R_386_IRELATIVE) in reloc_iresolve_nonplt()
414 reloc_iresolve_one(obj, rel, lockstate); in reloc_iresolve_nonplt()
423 const Elf_Rel *rel; in reloc_gnu_ifunc() local
428 for (rel = obj->pltrel; rel < rellim; rel++) { in reloc_gnu_ifunc()
433 switch (ELF_R_TYPE(rel->r_info)) { in reloc_gnu_ifunc()
435 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_gnu_ifunc()
436 def = find_symdef(ELF_R_SYM(rel->r_info), obj, &defobj, in reloc_gnu_ifunc()
445 reloc_jmpslot(where, target, defobj, obj, rel); in reloc_gnu_ifunc()