]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: use 64k segment alignment on linux/arm
authorRuss Cox <rsc@golang.org>
Wed, 4 Jan 2017 14:24:33 +0000 (09:24 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 4 Jan 2017 18:32:38 +0000 (18:32 +0000)
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>
src/cmd/link/internal/arm/obj.go

index 4feaa096a796a84b7c0004120ee275bda286822b..05b90d20f206f1f111560069b89d38c465ca8cf8 100644 (file)
@@ -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: