diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-08-15 09:38:06 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-15 22:56:47 +0200 |
commit | 56ec51a012c76670d421fe9d3d3699278564cee5 (patch) | |
tree | f6574625b0553293fafb10cffe98442103a68ce8 /exec/priv.h | |
parent | 753ee9aee498bc8bf979fdb0b9272e7f4d1e3bb9 (diff) |
exec: keep track of the range where executable segments are mapped
Keep track of the range where executable segments are mapped into
memory and hand that information over to the proc server.
* exec/priv.h (struct execdata): Add {start,end}_code.
* exec/exec.c (prepare): Initialize {start,end}_code.
(load_section): Update {start,end}_code.
(do_exec): Use proc_set_code to hand {start,end}_code to the proc server.
Diffstat (limited to 'exec/priv.h')
-rw-r--r-- | exec/priv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exec/priv.h b/exec/priv.h index b9c6e990..85e03aee 100644 --- a/exec/priv.h +++ b/exec/priv.h @@ -73,6 +73,10 @@ struct execdata vm_address_t entry; file_t file; + /* Set by load_section. */ + vm_address_t start_code; + vm_address_t end_code; + /* Note that if `file_data' (below) is set, then these just point into that and should not be deallocated (file_data is malloc'd). */ char *map_buffer; /* Our mapping window or read buffer. */ |