Skip to content

Commit

Permalink
stub runtime_{Before,After}Exec for linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
archie2x authored and deadprogram committed Sep 4, 2024
1 parent 105fe9b commit e39358d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/runtime/proc.go
Original file line number Diff line number Diff line change
@@ -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() {
}

0 comments on commit e39358d

Please sign in to comment.