This turned out nicely self-contained. Thanks very much. One small thing
below to avoid touching the startup code.
http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/rt0_linux_amd64.s
File src/pkg/runtime/rt0_linux_amd64.s (right):
http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/rt0_linux_amd64.s#newcode8
src/pkg/runtime/rt0_linux_amd64.s:8:
CALL runtime·linux_setup_sysargs_handler(SB)
Delete.
http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/vdso_linux_amd64.c
File src/pkg/runtime/vdso_linux_amd64.c (right):
http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/vdso_linux_amd64.c#newcode323
src/pkg/runtime/vdso_linux_amd64.c:323: #pragma textflag 7
Replace this function wth
void (*runtime·sysargs)(int32, uint8**) = runtime.linux_setup_vdso;
then the linker will do it for you.
http://codereview.appspot.com/6454046/