diff options
Diffstat (limited to 'src/runtime/runtime.go')
| -rw-r--r-- | src/runtime/runtime.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index f240d7ae70..0822d0e805 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -151,3 +151,12 @@ func syscall_runtimeUnsetenv(key string) { func writeErrStr(s string) { write(2, unsafe.Pointer(unsafe.StringData(s)), int32(len(s))) } + +// auxv is populated on relevant platforms but defined here for all platforms +// so x/sys/cpu can assume the getAuxv symbol exists without keeping its list +// of auxv-using GOOS build tags in sync. +// +// It contains an even number of elements, (tag, value) pairs. +var auxv []uintptr + +func getAuxv() []uintptr { return auxv } // accessed from x/sys/cpu; see issue 57336 |
