From f8999910e69fb89928fc7f39a562d588dc3a44c8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 26 Sep 2004 20:19:54 +0000 Subject: 2004-09-26 Roland McGrath * priv.h (struct execdata.info.elf): New field `phdr_addr'. * exec.c (check_elf): Set E->info.elf.phdr_addr here from e_phoff. (check_elf_phdr): Don't check for PT_PHDR, remove last two args. (do_exec): Update callers. Set BOOT->phdr_addr and BOOT->phdr_size using info saved by check_elf. --- exec/priv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'exec/priv.h') diff --git a/exec/priv.h b/exec/priv.h index 625ea477..7cee15e4 100644 --- a/exec/priv.h +++ b/exec/priv.h @@ -148,6 +148,7 @@ struct execdata After `check' this is a pointer into the mapping window. By `load' it is local alloca'd storage. */ ElfW(Phdr) *phdr; + ElfW(Addr) phdr_addr; ElfW(Word) phnum; /* Number of program header table elements. */ int anywhere; /* Nonzero if image can go anywhere. */ vm_address_t loadbase; /* Actual mapping location. */ -- cgit v1.2.3