mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
c1b6e392f5
commit
c83c806535
6 changed files with 21 additions and 13 deletions
|
|
@ -585,6 +585,10 @@ func (ctxt *Link) FixedFrameSize() int64 {
|
|||
switch ctxt.Arch.Thechar {
|
||||
case '6', '8':
|
||||
return 0
|
||||
case '9':
|
||||
// PIC code on ppc64le requires 32 bytes of stack, and it's easier to
|
||||
// just use that much stack always on ppc64x.
|
||||
return int64(4 * ctxt.Arch.Ptrsize)
|
||||
default:
|
||||
return int64(ctxt.Arch.Ptrsize)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue