diff options
author | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-10-30 12:36:08 +1300 |
---|---|---|
committer | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-11-12 22:32:37 +0000 |
commit | c83c8065355c7ccef33eb0ebc870bf648d3d89cb (patch) | |
tree | 8536676110e344ef3b9105845f9c0bf336f2a64f /src/runtime/asm_ppc64x.h | |
parent | c1b6e392f56a35d4e59e1e938c68e4c5db4fd919 (diff) | |
download | go-c83c8065355c7ccef33eb0ebc870bf648d3d89cb.tar.gz go-c83c8065355c7ccef33eb0ebc870bf648d3d89cb.zip |
cmd/internal/obj, cmd/link, runtime: use a larger stack frame on ppc64
The larger stack frames causes the nosplit stack to overflow so the next change
increases the stackguard.
Change-Id: Ib2b4f24f0649eb1d13e3a58d265f13d1b6cc9bf9
Reviewed-on: https://go-review.googlesource.com/15964
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/asm_ppc64x.h')
-rw-r--r-- | src/runtime/asm_ppc64x.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/runtime/asm_ppc64x.h b/src/runtime/asm_ppc64x.h index a2d2e5beaf..a413df6488 100644 --- a/src/runtime/asm_ppc64x.h +++ b/src/runtime/asm_ppc64x.h @@ -18,14 +18,8 @@ // with arguments (the arguments should be stored at FIXED_FRAME+0(R1), // FIXED_FRAME+8(R1) etc) and some other low-level places. // -// The reason for using a constant is when code is compiled as PIC on ppc64le -// the fixed part of the stack is 32 bytes large (although PIC is not actually -// supported yet). +// The reason for using a constant is to make supporting PIC easier (although +// we only support PIC on ppc64le which has a minimum 32 bytes of stack frame, +// and currently always use that much, PIC on ppc64 would need to use 48). -#ifdef GOARCH_ppc64 -#define FIXED_FRAME 8 -#endif - -#ifdef GOARCH_ppc64le -#define FIXED_FRAME 8 -#endif +#define FIXED_FRAME 32 |