var atExitFuncs … func AtExit(f func()) { … } // runAtExitFuncs runs the queued set of AtExit functions. func runAtExitFuncs() { … } // Exit exits with code after executing all atExitFuncs. func Exit(code int) { … } // Exitf logs an error message then calls Exit(2). func Exitf(format string, a ...interface{ … } // afterErrorAction updates 'nerrors' on error and invokes exit or // panics in the proper circumstances. func afterErrorAction() { … } // Errorf logs an error message. // // If more than 20 errors have been printed, exit with an error. // // Logging an error means that on exit cmd/link will delete any // output file and return a non-zero error code. // // TODO: remove. Use ctxt.Errorf instead. // All remaining calls use nil as first arg. func Errorf(dummy *int, format string, args ...interface{ … } // Errorf method logs an error message. // // If more than 20 errors have been printed, exit with an error. // // Logging an error means that on exit cmd/link will delete any // output file and return a non-zero error code. func (ctxt *Link) Errorf(s loader.Sym, format string, args ...interface{ … } func artrim(x []byte) string { … } func stringtouint32(x []uint32, s string) { … }