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);
371 "object\n", obj->path, type);
383 *where = (Elf_Addr)(obj->relocbase + value);
393 def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj,
413 "static Thread Local Storage", obj->path);
446 value += (Elf_Addr)(obj->relocbase);
489 reloc_plt(Obj_Entry *obj)
499 relalim = (const Elf_Rela *)((char *)obj->pltrela + obj->pltrelasize);
500 for (rela = obj->pltrela; rela < relalim; rela++) {
504 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
505 def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj,
535 reloc_jmpslots(Obj_Entry *obj, int flags, RtldLockState *lockstate)
544 relalim = (const Elf_Rela *)((char *)obj->pltrela + obj->pltrelasize);
545 for (rela = obj->pltrela; rela < relalim; rela++) {
547 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
548 def = find_symdef(ELF_R_SYM(rela->r_info), obj, &defobj,
553 reloc_jmpslot(where, target, defobj, obj, (Elf_Rel *)rela);
555 obj->jmpslots_done = true;
560 reloc_iresolve(Obj_Entry *obj, struct Struct_RtldLockState *lockstate)
568 reloc_gnu_ifunc(Obj_Entry *obj, int flags,
577 reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *obj,
802 init_pltgot(Obj_Entry *obj)
806 if (obj->pltgot != NULL) {
807 entry = (Elf_Word *)obj->pltgot;
810 obj->pltgot[8] = (Elf_Addr)obj;