Skip to content

Commit

Permalink
cmd/link: use 64k segment alignment on linux/arm
Browse files Browse the repository at this point in the history
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: Austin Clements <austin@google.com>
  • Loading branch information
rsc committed Jan 4, 2017
1 parent 6a1cac2 commit f64b7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/link/internal/arm/obj.go
Expand Up @@ -104,7 +104,7 @@ func archinit(ctxt *ld.Link) {
*ld.FlagDataAddr = 0
}
if *ld.FlagRound == -1 {
*ld.FlagRound = 4096
*ld.FlagRound = 0x10000
}

case obj.Hnacl:
Expand Down

0 comments on commit f64b7d3

Please sign in to comment.