Lines Matching defs:obj

56 set_gp(Obj_Entry *obj)
68 res = symlook_obj(&req, obj);
79 init_pltgot(Obj_Entry *obj)
82 if (obj->pltgot != NULL) {
83 obj->pltgot[0] = (Elf_Addr)&_rtld_bind_start;
84 obj->pltgot[1] = (Elf_Addr)obj;
150 reloc_plt(Obj_Entry *obj)
155 relalim = (const Elf_Rela *)((char *)obj->pltrela + obj->pltrelasize);
156 for (rela = obj->pltrela; rela < relalim; rela++) {
161 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
162 *where += (Elf_Addr)obj->relocbase;
172 reloc_jmpslots(Obj_Entry *obj, int flags, RtldLockState *lockstate)
179 relalim = (const Elf_Rela *)((char *)obj->pltrela + obj->pltrelasize);
180 for (rela = obj->pltrela; rela < relalim; rela++) {
183 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
186 def = find_symdef(ELF_R_SYM(rela->r_info), obj,
206 reloc_iresolve(Obj_Entry *obj, struct Struct_RtldLockState *lockstate)
214 reloc_gnu_ifunc(Obj_Entry *obj, int flags,
224 const Obj_Entry *obj, const Elf_Rel *rel)
238 reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags,
257 if (obj == obj_rtld)
260 cache = calloc(obj->dynsymcount, sizeof(SymCache));
263 relalim = (const Elf_Rela *)((caddr_t)obj->rela + obj->relasize);
264 for (rela = obj->rela; rela < relalim; rela++) {
265 where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
275 def = find_symdef(symnum, obj, &defobj, flags, cache,
284 def = find_symdef(symnum, obj, &defobj, flags, cache,
298 if (!obj->mainprog) {
300 "relocation in shared library", obj->path);
305 def = find_symdef(symnum, obj, &defobj, flags, cache,
321 "Thread Local Storage", obj->path);
330 def = find_symdef(symnum, obj, &defobj, flags, cache,
347 "Thread Local Storage", obj->path);
356 *where = (Elf_Addr)(obj->relocbase + rela->r_addend);
360 obj->path, ELF_R_TYPE(rela->r_info));