From 0ca198f1f90071a054287c204a3fd1b4ea315e18 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 11 Dec 2017 02:32:26 +0100 Subject: Record executable entry for PIE core dumps * hurd/process.defs (proc_set_entry, proc_get_entry): New RPCs. * hurd/process_reply.defs: Add skips for proc_set_entry, proc_get_entry. * hurd/process_request.defs: Likewise. * exec/exec.c (do_exec): Call proc_set_entry. * proc/proc.h (proc): Add p_entry field. * proc/mgt.c (S_proc_set_entry, S_proc_get_entry): New RPC implementations. * exec/elfcore.c (dump_core): Add at_entry note, call proc_get_entry to get it, and write it with WRITE_NOTE. --- proc/proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'proc/proc.h') diff --git a/proc/proc.h b/proc/proc.h index 333e8840..b33845d9 100644 --- a/proc/proc.h +++ b/proc/proc.h @@ -71,6 +71,7 @@ struct proc vm_address_t p_argv, p_envp; vm_address_t start_code; /* all executable segments are in this range */ vm_address_t end_code; + vm_address_t p_entry; /* executable entry */ 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