aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2013-08-19 18:08:31 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2013-08-19 18:08:31 -0700
commit2a0bfcd3da1a9f76cd2d0b05f59afb6533faa318 (patch)
tree5ed42845fbd745a190947a702d6db771df08c76e
parentecb15c6cabd106a186ee1caad086cb11c80cb84e (diff)
downloadpk-2a0bfcd3da1a9f76cd2d0b05f59afb6533faa318.zip
pk-2a0bfcd3da1a9f76cd2d0b05f59afb6533faa318.tar.gz
pk-2a0bfcd3da1a9f76cd2d0b05f59afb6533faa318.tar.bz2
Don't clobber the ELF headers!
-rw-r--r--pk/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pk/init.c b/pk/init.c
index 0e4f2fb..0b36d61 100644
--- a/pk/init.c
+++ b/pk/init.c
@@ -45,6 +45,7 @@ static void user_init()
// load program named by argv[0]
current.phdr_top = stack_top;
load_elf((char*)args->argv[0], &current);
+ stack_top = current.phdr;
struct {
long key;