Commit Graph

5 Commits

Author SHA1 Message Date
Junya Hayashi
a3f2cbd54c unix: fix typo in unix/asm_linux_arm64.s made in 28a7276
28a7276 causes following error with GOARCH=arm64 environment.

  # golang.org/x/sys/unix
  asm: InitTextSym double init for "".Syscall
  asm: symbol "".Syscall listed multiple times
  asm: invalid encoding for argument 00004 (/home/junya/go/src/golang.org/x/sys/unix/asm_linux_arm64.s:21)        CALL    runtime.entersyscall(SB)
  asm: invalid encoding for argument 00048 (/home/junya/go/src/golang.org/x/sys/unix/asm_linux_arm64.s:32)        CALL    runtime.exitsyscall(SB)
  asm: makeFuncDebugEntry double process "".Syscall
  asm: assembly failed

Change-Id: Ic7895fecc5f4b1fd6ebef63603c5f720227f5130
Reviewed-on: https://go-review.googlesource.com/86135
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-01-04 16:29:08 +00:00
Tobias Klauser
28a7276518 unix: add SyscallNoError and RawSyscallNoError on Linux
Add the SyscallNoError and RawSyscallNoError wrapper functions which are
used for syscalls that don't return an error. Also convert all applicable
syscalls to use these wrappers.

Updates golang/go#22924

Change-Id: Ie143abc99de8d12d36b67ac278e08d7565f73ce0
Reviewed-on: https://go-review.googlesource.com/85756
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-01-03 16:03:02 +00:00
Shenghou Ma
379497e3ff unix: add explicit build tags
Change-Id: I62774b8ee0c1a7cc1a3b7009ca860e3fd64a6564
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/10182
Reviewed-by: Rob Pike <r@golang.org>
2015-05-18 19:15:57 +00:00
Ian Lance Taylor
8bcc2dbee4 unix: add arm64 and ppc64le build tags as needed for Go 1.4
Go1.4 does not recognize arm64 and ppc64le as valid GOARCH values, so
we need explicit build tags.

Change-Id: I1a886c132ae398d9f92b2c2b33d2a4827bbdb9d4
Reviewed-on: https://go-review.googlesource.com/10083
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-05-14 20:02:06 +00:00
Ian Lance Taylor
9907ecf448 unix: add arm64/linux support
This incorporates generation script changes from
http://golang.org/cl/7143.

Files generated on Ubuntu Trusty.

Change-Id: I28cfa0993573e1b280c549a67f453c0fb01dee2f
Reviewed-on: https://go-review.googlesource.com/10038
Reviewed-by: Rob Pike <r@golang.org>
2015-05-13 23:16:16 +00:00