diff options
Diffstat (limited to 'sys/kern/link_elf.c')
| -rw-r--r-- | sys/kern/link_elf.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index f645ceb88d85..3977ab1e0821 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -767,10 +767,8 @@ link_elf_load_file(linker_class_t cls, const char* filename, Elf_Phdr *segs[MAXSEGS]; int nsegs; Elf_Phdr *phdyn; - Elf_Phdr *phphdr; caddr_t mapbase; size_t mapsize; - Elf_Off base_offset; Elf_Addr base_vaddr; Elf_Addr base_vlimit; int error = 0; @@ -869,7 +867,6 @@ link_elf_load_file(linker_class_t cls, const char* filename, phlimit = phdr + hdr->e_phnum; nsegs = 0; phdyn = NULL; - phphdr = NULL; while (phdr < phlimit) { switch (phdr->p_type) { case PT_LOAD: @@ -885,10 +882,6 @@ link_elf_load_file(linker_class_t cls, const char* filename, ++nsegs; break; - case PT_PHDR: - phphdr = phdr; - break; - case PT_DYNAMIC: phdyn = phdr; break; @@ -916,7 +909,6 @@ link_elf_load_file(linker_class_t cls, const char* filename, * out our contiguous region, and to establish the base * address for relocation. */ - base_offset = trunc_page(segs[0]->p_offset); base_vaddr = trunc_page(segs[0]->p_vaddr); base_vlimit = round_page(segs[nsegs - 1]->p_vaddr + segs[nsegs - 1]->p_memsz); |
