Skip to content

Commit f64b7d3

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Austin Clements <[email protected]>
1 parent 6a1cac2 commit f64b7d3

File tree

1 file changed

+1
-1
lines changed
  • src/cmd/link/internal/arm

1 file changed

+1
-1
lines changed

src/cmd/link/internal/arm/obj.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func archinit(ctxt *ld.Link) {
104104
*ld.FlagDataAddr = 0
105105
}
106106
if *ld.FlagRound == -1 {
107-
*ld.FlagRound = 4096
107+
*ld.FlagRound = 0x10000
108108
}
109109

110110
case obj.Hnacl:

0 commit comments

Comments
 (0)