diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-30 04:48:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-30 04:48:55 +0000 |
commit | 111c8b4ce9f4267fd39d846d1bb20144a10154d2 (patch) | |
tree | ddf983e622d5585cda0fcdb353d0015b809ee387 | |
parent | a8e4cea41c3e81c33b243ba75de772a5426b82bf (diff) | |
download | gcc-111c8b4ce9f4267fd39d846d1bb20144a10154d2.zip gcc-111c8b4ce9f4267fd39d846d1bb20144a10154d2.tar.gz gcc-111c8b4ce9f4267fd39d846d1bb20144a10154d2.tar.bz2 |
internal/syscall/unix: add randomTrap for sh/shbe
CL 84555 added support for the SuperH architecture, but didn't add the
randomTrap definition to be used for the getrandom syscall on Linux.
Add it now.
Reviewed-on: https://go-review.googlesource.com/90535
From-SVN: r257171
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | libgo/go/internal/syscall/unix/getrandom_linux_shx.go | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index dc53124..a5e027c 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -6517e6731aeb4512d12c341c7111959a44547ba0 +bbce8a9af264b25c5f70bafb2ce95d4fed158d68 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/internal/syscall/unix/getrandom_linux_shx.go b/libgo/go/internal/syscall/unix/getrandom_linux_shx.go new file mode 100644 index 0000000..e0e3521 --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_linux_shx.go @@ -0,0 +1,11 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build sh shbe + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 373 |