public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-6407] runtime: move startupRandomData back to runtime2.go
@ 2021-01-01 23:12 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2021-01-01 23:12 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0b9ef8be40b8ec530e46779a694e3b115b8e685d

commit r11-6407-g0b9ef8be40b8ec530e46779a694e3b115b8e685d
Author: Ian Lance Taylor <iant@golang.org>
Date:   Fri Jan 1 11:51:50 2021 -0800

    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:
---
 gcc/go/gofrontend/MERGE      | 2 +-
 libgo/go/runtime/os_linux.go | 4 ----
 libgo/go/runtime/runtime2.go | 4 ++++
 3 files changed, 5 insertions(+), 5 deletions(-)

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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-01 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-01 23:12 [gcc r11-6407] runtime: move startupRandomData back to runtime2.go Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).