aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorElias Naur <[email protected]>2024-07-08 22:09:30 +0200
committerGitHub <[email protected]>2024-07-08 13:09:30 -0700
commit5ca3e4a2da72a2cb981b9af061a14c1128870957 (patch)
treef3f11f4fba54da932d8d13a5cecd096b5a8387a4
parente6caa3fe9ef0a68779953b7fc9c3cfce3c8158ca (diff)
downloadtinygo-5ca3e4a2da72a2cb981b9af061a14c1128870957.tar.gz
tinygo-5ca3e4a2da72a2cb981b9af061a14c1128870957.zip
runtime: implement dummy getAuxv to satisfy golang.org/x/sys/cpu (#4325)
Fixes the program package main import _ "golang.org/x/sys/cpu" func main() { }
-rw-r--r--src/runtime/runtime.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index a93260ba8..bb937f044 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -122,3 +122,8 @@ func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
}
return 0
}
+
+// getAuxv is linknamed from golang.org/x/sys/cpu.
+func getAuxv() []uintptr {
+ return nil
+}