aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/runtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/runtime.go')
-rw-r--r--libgo/go/runtime/runtime.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/go/runtime/runtime.go b/libgo/go/runtime/runtime.go
index 58710de..d19d6afe 100644
--- a/libgo/go/runtime/runtime.go
+++ b/libgo/go/runtime/runtime.go
@@ -61,6 +61,12 @@ func syscall_Getpagesize() int { return int(physPageSize) }
//go:linkname os_runtime_args os.runtime_args
func os_runtime_args() []string { return append([]string{}, argslice...) }
+//go:linkname syscall_Exit syscall.Exit
+//go:nosplit
+func syscall_Exit(code int) {
+ exit(int32(code))
+}
+
// Temporary, for the gccgo runtime code written in C.
//go:linkname get_envs runtime_get_envs
func get_envs() []string { return envs }