From: Ian Lance Taylor Date: Fri, 1 Jan 2021 19:51:50 +0000 (-0800) Subject: runtime: move startupRandomData back to runtime2.go X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b9ef8be40b8ec530e46779a694e3b115b8e685d;p=gcc.git runtime: move startupRandomData back to runtime2.go In libgo it's referenced from os_gccgo.go on all platforms. Fixes go/98496 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/280999 --- diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 6039cbc15f5..e51285c7214 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -6857530fb1662c05a3ce754df2bd9fa5acd3a35b +fa161cb71880cf80ef53fb4bf35dba8ee01af648 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/go/runtime/os_linux.go b/libgo/go/runtime/os_linux.go index 0eebdfa8004..627b6d6d43c 100644 --- a/libgo/go/runtime/os_linux.go +++ b/libgo/go/runtime/os_linux.go @@ -178,10 +178,6 @@ func sysargs(argc int32, argv **byte) { sysauxv(buf[:]) } -// startupRandomData holds random bytes initialized at startup. These come from -// the ELF AT_RANDOM auxiliary vector. -var startupRandomData []byte - func sysauxv(auxv []uintptr) int { var i int for ; auxv[i] != _AT_NULL; i += 2 { diff --git a/libgo/go/runtime/runtime2.go b/libgo/go/runtime/runtime2.go index 2e550151245..023dac38ec2 100644 --- a/libgo/go/runtime/runtime2.go +++ b/libgo/go/runtime/runtime2.go @@ -885,6 +885,10 @@ type forcegcstate struct { idle uint32 } +// startupRandomData holds random bytes initialized at startup. These come from +// the ELF AT_RANDOM auxiliary vector. +var startupRandomData []byte + // extendRandom extends the random numbers in r[:n] to the whole slice r. // Treats n<0 as n==0. func extendRandom(r []byte, n int) {