Changeset View
Changeset View
Standalone View
Standalone View
libexec/rtld-elf/amd64/reloc.c
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld, int flags, | ||||
r = 0; | r = 0; | ||||
done: | done: | ||||
free(cache); | free(cache); | ||||
return (r); | return (r); | ||||
} | } | ||||
/* Process the PLT relocations. */ | /* Process the PLT relocations. */ | ||||
int | int | ||||
reloc_plt(Obj_Entry *obj) | reloc_plt(Obj_Entry *obj, int flags __unused, RtldLockState *lockstate __unused) | ||||
{ | { | ||||
const Elf_Rela *relalim; | const Elf_Rela *relalim; | ||||
const Elf_Rela *rela; | const Elf_Rela *rela; | ||||
relalim = (const Elf_Rela *)((const char *)obj->pltrela + obj->pltrelasize); | relalim = (const Elf_Rela *)((const char *)obj->pltrela + obj->pltrelasize); | ||||
for (rela = obj->pltrela; rela < relalim; rela++) { | for (rela = obj->pltrela; rela < relalim; rela++) { | ||||
Elf_Addr *where; | Elf_Addr *where; | ||||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |