Skip to content

Commit

Permalink
runtime: implement dummy getAuxv to satisfy golang.org/x/sys/cpu (#4325)
Browse files Browse the repository at this point in the history
Fixes the program

  package main

  import _ "golang.org/x/sys/cpu"

  func main() {
  }
  • Loading branch information
eliasnaur authored Jul 8, 2024
1 parent e6caa3f commit 5ca3e4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5ca3e4a

Please sign in to comment.