Lines Matching defs:obj

233 static int reloc_nonplt_object(Obj_Entry *obj, const Elf_Rela *rela,
295 reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags,
311 if (obj != obj_rtld) {
312 cache = calloc(obj->dynsymcount, sizeof(SymCache));
317 relalim = (const Elf_Rela *)((caddr_t)obj->rela + obj->relasize);
318 for (rela = obj->rela; rela < relalim; rela++) {
319 if (reloc_nonplt_object(obj, rela, cache, flags, lockstate) < 0)
330 reloc_nonplt_object(Obj_Entry *obj, const Elf_Rela *rela, SymCache *cache,
341 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
370 "object\n", obj->path, type);
382 *where = (Elf_Addr)(obj->relocbase + value);
392 def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj,
412 "static Thread Local Storage", obj->path);
445 value += (Elf_Addr)(obj->relocbase);
488 reloc_plt(Obj_Entry *obj)
498 relalim = (const Elf_Rela *)((char *)obj->pltrela + obj->pltrelasize);
499 for (rela = obj->pltrela; rela < relalim; rela++) {
503 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
504 def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj,
534 reloc_jmpslots(Obj_Entry *obj, int flags, RtldLockState *lockstate)
543 relalim = (const Elf_Rela *)((char *)obj->pltrela + obj->pltrelasize);
544 for (rela = obj->pltrela; rela < relalim; rela++) {
546 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
547 def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj,
552 reloc_jmpslot(where, target, defobj, obj, (Elf_Rel *)rela);
554 obj->jmpslots_done = true;
559 reloc_iresolve(Obj_Entry *obj, struct Struct_RtldLockState *lockstate)
567 reloc_gnu_ifunc(Obj_Entry *obj, int flags,
576 reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *obj,
818 init_pltgot(Obj_Entry *obj)
822 if (obj->pltgot != NULL) {
823 entry = (Elf_Word *)obj->pltgot;
826 obj->pltgot[8] = (Elf_Addr)obj;