Commit 072ae847f9ac50392f618b7bcf01184b31f49a8f
1 parent
4c909d14
Setup stack properly, fixes wrong argc value problem, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3000 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
linux-user/elfload.c
... | ... | @@ -325,7 +325,7 @@ static inline void init_thread(struct target_pt_regs *regs, struct image_info *i |
325 | 325 | { |
326 | 326 | /* Check other registers XXXXX */ |
327 | 327 | regs->pc = infop->entry; |
328 | - regs->regs[15] = infop->start_stack - 16 * 4; | |
328 | + regs->regs[15] = infop->start_stack; | |
329 | 329 | } |
330 | 330 | |
331 | 331 | #define USE_ELF_CORE_DUMP | ... | ... |