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.

BUG= https://code.google.com/p/chromium/issues/detail?id=397177
TEST= ./scons bitcode=1 minsfi=1 minsfi_tests
NOTRY=true

Review URL: https://codereview.chromium.org/546883003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client/site_scons@13728 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
1 file changed
tree: 7df07f345dae01951a3b7410ae4652d29bbf812e
  1. gyp_extract.py
  2. site_init.py
  3. site_tools/
  4. usage_log.py