Browse Source

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() {
  }
pull/3887/merge
Elias Naur 4 months ago
committed by GitHub
parent
commit
5ca3e4a2da
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      src/runtime/runtime.go

5
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
}

Loading…
Cancel
Save