From c62a440d866ccd8259b408ec59a2c16069e0ce0c Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Thu, 15 Aug 2013 09:38:04 +0200 Subject: proc: keep track of {start,end}_code Any executable segments loaded from the ELF binary are in this range. * proc/proc.h (struct proc): Add {start,end}_code. * proc/mgt.h (S_proc_set_code): New function. * proc/mgt.h (S_proc_get_code): New function. --- proc/proc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'proc/proc.h') diff --git a/proc/proc.h b/proc/proc.h index ed47cccb..f846b37b 100644 --- a/proc/proc.h +++ b/proc/proc.h @@ -64,6 +64,8 @@ struct proc /* Miscellaneous information */ vm_address_t p_argv, p_envp; + vm_address_t start_code; /* all executable segments are in this range */ + vm_address_t end_code; int p_status; /* to return via wait */ int p_sigcode; struct rusage p_rusage; /* my usage if I'm dead, to return via wait */ -- cgit v1.2.3