]> Cypherpunks repositories - gostls13.git/commit
runtime: change amd64 startup convention
authorRuss Cox <rsc@golang.org>
Wed, 6 Mar 2013 20:03:04 +0000 (15:03 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 6 Mar 2013 20:03:04 +0000 (15:03 -0500)
commit36b414f6397cadffab1a945eed645a3213f39d8a
tree2a92db3349a329b963f4b776bf9e82dc77bcea98
parentcf8434fa3119d14abbc7f1ecec61f0cc947dfac4
runtime: change amd64 startup convention

Now the default startup is that the program begins at _rt0_amd64_$GOOS,
which sets DI = argc, SI = argv and jumps to _rt0_amd64.

This makes the _rt0_amd64 entry match the expected semantics for
the standard C "main" function, which we can now provide for use when
linking against a standard C library.

R=golang-dev, devon.odell, minux.ma
CC=golang-dev
https://golang.org/cl/7525043
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/rt0_darwin_amd64.s
src/pkg/runtime/rt0_freebsd_amd64.s
src/pkg/runtime/rt0_linux_amd64.s
src/pkg/runtime/rt0_netbsd_amd64.s
src/pkg/runtime/rt0_openbsd_amd64.s
src/pkg/runtime/rt0_plan9_amd64.s
src/pkg/runtime/rt0_windows_amd64.s