diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-01 20:17:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-01 20:17:11 +0000 |
commit | 44ef03008c75059368245eb3dcd6054bed3f7643 (patch) | |
tree | b5bbe87fcb0616ef9758a0ce62e988d331f879cb /libgo/go/internal | |
parent | 1b28253347dedba72abaf81e86b1812863d07a11 (diff) |
libgo: support x32 as GOARCH=amd64p32 GOOS=linux
This is enough to let libgo build when configured using
--with-multilib-list=m64,m32,mx32. I don't have an x32-enabled kernel
so I haven't tested whether it executes correctly.
For https://gcc.gnu.org/PR87470
Reviewed-on: https://go-review.googlesource.com/138817
From-SVN: r264772
Diffstat (limited to 'libgo/go/internal')
-rw-r--r-- | libgo/go/internal/syscall/unix/getrandom_linux_amd64p32.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_amd64p32.go b/libgo/go/internal/syscall/unix/getrandom_linux_amd64p32.go new file mode 100644 index 00000000000..911b6089ff3 --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_linux_amd64p32.go @@ -0,0 +1,9 @@ +// 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. + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 0x40000000 + 318 |