diff options
| author | Austin Clements <austin@google.com> | 2014-12-16 18:34:55 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-01-07 20:36:27 +0000 |
| commit | af7ca8dce4991860263d5e0d0322461cfd00c599 (patch) | |
| tree | d590342faa9de3ff44ed3f50dffd1e94abf29fc4 /src/runtime/runtime1.go | |
| parent | f1c4444dfcca5967543d43190b6c80c9254b99ac (diff) | |
| download | go-af7ca8dce4991860263d5e0d0322461cfd00c599.tar.xz | |
cmd/cgo, runtime/cgo: support ppc64
This implements support for calls to and from C in the ppc64 C ABI, as
well as supporting functionality such as an entry point from the
dynamic linker.
Change-Id: I68da6df50d5638cb1a3d3fef773fb412d7bf631a
Reviewed-on: https://go-review.googlesource.com/2009
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/runtime1.go')
| -rw-r--r-- | src/runtime/runtime1.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index 495b5f915a..e6510a8aa3 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -77,6 +77,9 @@ func goargs() { } func goenvs_unix() { + // TODO(austin): ppc64 in dynamic linking mode doesn't + // guarantee env[] will immediately follow argv. Might cause + // problems. n := int32(0) for argv_index(argv, argc+1+n) != nil { n++ |
