aboutsummaryrefslogtreecommitdiff
path: root/linux-user/flatload.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/flatload.c')
-rw-r--r--linux-user/flatload.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index 1e2634b5a2..bf55be2b7d 100644
--- a/linux-user/flatload.c
+++ b/linux-user/flatload.c
@@ -783,6 +783,9 @@ int load_flt_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
info->start_brk = libinfo[0].start_brk;
info->start_stack = sp;
info->entry = start_addr;
+ info->code_offset = info->start_code;
+ info->data_offset = info->start_data - libinfo[0].text_len;
+
DBG_FLT("start_thread(entry=0x%x, start_stack=0x%x)\n",
(int)info->entry, (int)info->start_stack);