next up previous contents index
Next: 23.3 Function Reference Up: 23.2 Types Previous: 23.2.3 exec_sectype_t: section type

23.2.4 exec_info_t: executable information structure

   

SYNOPSIS

#include <oskit/exec/exec.h>

struct exec_info  {

		exec_format_t	format;		/* Executable file format */
		oskit_addr_t	entry;		/* Entrypoint address */
		oskit_addr_t	init_dp;	/* Initial data pointer */
	 
}; typedef struct exec_info exec_info_t;

DESCRIPTION

Each of the executable interpreter functions described below fills in a caller-provided structure of this type after successfully loading an executable. This structure contains miscellaneous information about the executable: in particular, information needed to actually start the program running.
format
The file format in which the executable was expressed.
entry
The entrypoint address of the executable, which is where it should start running.
init_dp
This value is only relevant on some architectures (and in particular not the x86); it is a secondary address, typically loaded into another processor register when the program is started and used as a ``data pointer'' for accessing global data.



University of Utah Flux Research Group