Skip to content

Commit 5ca3e4a

Browse files
authored
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() { }
1 parent e6caa3f commit 5ca3e4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/runtime/runtime.go

+5
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,8 @@ func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
122122
}
123123
return 0
124124
}
125+
126+
// getAuxv is linknamed from golang.org/x/sys/cpu.
127+
func getAuxv() []uintptr {
128+
return nil
129+
}

0 commit comments

Comments
 (0)