Skip to content

Commit e39358d

Browse files
archie2xdeadprogram
authored andcommitted
stub runtime_{Before,After}Exec for linkage
1 parent 105fe9b commit e39358d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/runtime/proc.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2014 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package runtime
6+
7+
// Called from syscall package before Exec.
8+
//
9+
//go:linkname syscall_runtime_BeforeExec syscall.runtime_BeforeExec
10+
func syscall_runtime_BeforeExec() {
11+
// Used in BigGo to serialize exec / thread creation. Stubbing to
12+
// satisfy link.
13+
}
14+
15+
// Called from syscall package after Exec.
16+
//
17+
//go:linkname syscall_runtime_AfterExec syscall.runtime_AfterExec
18+
func syscall_runtime_AfterExec() {
19+
}

0 commit comments

Comments
 (0)