Commit f64b7d30 authored by Russ Cox's avatar Russ Cox

cmd/link: use 64k segment alignment on linux/arm

Otherwise 64k pages don't map correctly.

Fixes #18408.

Change-Id: I85f56682531566d1ff5c655640cd58509514aee8
Reviewed-on: https://go-review.googlesource.com/34629
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarAustin Clements <austin@google.com>
parent 6a1cac27
...@@ -104,7 +104,7 @@ func archinit(ctxt *ld.Link) { ...@@ -104,7 +104,7 @@ func archinit(ctxt *ld.Link) {
*ld.FlagDataAddr = 0 *ld.FlagDataAddr = 0
} }
if *ld.FlagRound == -1 { if *ld.FlagRound == -1 {
*ld.FlagRound = 4096 *ld.FlagRound = 0x10000
} }
case obj.Hnacl: case obj.Hnacl:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment