]> Cypherpunks repositories - gostls13.git/commit
runtime: change 386 startup convention
authorRuss Cox <rsc@golang.org>
Fri, 8 Mar 2013 03:57:10 +0000 (19:57 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 8 Mar 2013 03:57:10 +0000 (19:57 -0800)
commitdfc22e29ec2f687375d32c9f7662416d0c9f97d3
tree46b2b25937d6bf6434c79ea9fb0354e8e1822840
parentb6e0d39a343128759988c12e7560d21cd35472ca
runtime: change 386 startup convention

Now the default startup is that the program begins at _rt0_386_$GOOS,
which behaves as if calling main(argc, argv). Main jumps to _rt0_386.

This makes the _rt0_386 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.

386 analogue of https://golang.org/cl/7525043

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7551045
src/pkg/runtime/asm_386.s
src/pkg/runtime/rt0_darwin_386.s
src/pkg/runtime/rt0_freebsd_386.s
src/pkg/runtime/rt0_linux_386.s
src/pkg/runtime/rt0_netbsd_386.s
src/pkg/runtime/rt0_openbsd_386.s
src/pkg/runtime/rt0_plan9_386.s
src/pkg/runtime/rt0_windows_386.s
src/pkg/runtime/signal_linux_386.c