• Russ Cox's avatar
    runtime: change amd64 startup convention · 36b414f6
    Russ Cox authored
    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
    36b414f6
rt0_darwin_amd64.s 324 Bytes