summaryrefslogtreecommitdiff
path: root/exec/priv.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-09-26 20:19:54 +0000
committerRoland McGrath <roland@gnu.org>2004-09-26 20:19:54 +0000
commitf8999910e69fb89928fc7f39a562d588dc3a44c8 (patch)
tree1fae1e682c04a47fa9bc91781738f6226bdcbd6e /exec/priv.h
parenta745fb9c581beb8262c70d6805905706756ecf7b (diff)
2004-09-26 Roland McGrath <roland@frob.com>
* 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.
Diffstat (limited to 'exec/priv.h')
-rw-r--r--exec/priv.h1
1 files changed, 1 insertions, 0 deletions
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. */