diff options
author | Roger Standridge <[email protected]> | 2024-08-21 08:32:23 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-09-04 23:18:11 +0200 |
commit | e39358d0ee9d08fad1a838ecb4ea9322d4f9bbfa (patch) | |
tree | 203727f865779266c9c5443097933329cec71c71 /src | |
parent | 105fe9b25df656b0683174245c2c1f6ccaf5fd66 (diff) | |
download | tinygo-e39358d0ee9d08fad1a838ecb4ea9322d4f9bbfa.tar.gz tinygo-e39358d0ee9d08fad1a838ecb4ea9322d4f9bbfa.zip |
stub runtime_{Before,After}Exec for linkage
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime/proc.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go new file mode 100644 index 000000000..e029ffe95 --- /dev/null +++ b/src/runtime/proc.go @@ -0,0 +1,19 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package runtime + +// Called from syscall package before Exec. +// +//go:linkname syscall_runtime_BeforeExec syscall.runtime_BeforeExec +func syscall_runtime_BeforeExec() { + // Used in BigGo to serialize exec / thread creation. Stubbing to + // satisfy link. +} + +// Called from syscall package after Exec. +// +//go:linkname syscall_runtime_AfterExec syscall.runtime_AfterExec +func syscall_runtime_AfterExec() { +} |