]> Cypherpunks repositories - gostls13.git/commit
cmd/link: only adjust pagezero for iOS on darwin/arm64
authorRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 01:14:39 +0000 (21:14 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 01:57:51 +0000 (01:57 +0000)
commit4a5b99c3a81dab8f389123f6e53ad879bbf6ed42
tree44cc76cb0d48da898cccc0b68b79e9a030ba8dfd
parente7fed7fa353fa8a54759229a0adfe04c02fd7b5a
cmd/link: only adjust pagezero for iOS on darwin/arm64

The new pagezero_size introduced by CL 72730 breaks
on 32-bit systems, since it is 2³². Restrict the change to
darwin/arm64, since it is intended for iOS only.

We could plausibly allow GOARCH=amd64 as well, but
without a compelling reason, changing the zero page size
doesn't seem worth the risk.

Change-Id: I5d6adcbaff8d0e5b169ff13512f188332cc7ed9a
Reviewed-on: https://go-review.googlesource.com/73250
Run-TryBot: Russ Cox <rsc@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/link/internal/ld/lib.go