Added support for passing arguments to MinSFI's entry function

This patch modifies the MinSFI invocation interface to accept arguments
in the standard UNIX argc,argv format. The runtime copies these onto
the untrusted stack and invokes the _start_minsfi function with a pointer
to the beginning of the data structure. The sandboxed code will use it
to access the arguments but also to initialize its stack pointer.

The CL also introduces the untrusted support library and functions for
converting between native and untrusted pointers.

TEST= ./scons bitcode=1 minsfi=1 minsfi_tests

Review URL:

git-svn-id: svn:// fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
1 file changed
tree: 7df07f345dae01951a3b7410ae4652d29bbf812e
  3. site_tools/