Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rtld-elf/i386/reloc.c
Show First 20 Lines • Show All 268 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_Rel *rellim; | const Elf_Rel *rellim; | ||||
const Elf_Rel *rel; | const Elf_Rel *rel; | ||||
rellim = (const Elf_Rel *)((const char *)obj->pltrel + obj->pltrelsize); | rellim = (const Elf_Rel *)((const char *)obj->pltrel + obj->pltrelsize); | ||||
for (rel = obj->pltrel; rel < rellim; rel++) { | for (rel = obj->pltrel; rel < rellim; rel++) { | ||||
Elf_Addr *where/*, val*/; | Elf_Addr *where/*, val*/; | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |