Skip to content

Commit 5231ba2

Browse files
committed
cmd/link: stop passing -pagezero_size to darwin linker
We added -pagezero_size in CL 72730, where it was intented for iOS. The current code passes it only on macOS/AMD64 instead. It is not really necessary there. Also, the new darwin linker starts to emit a warning about deprecation of the flag. Stop passing it. For #54482. Change-Id: If9db7a1645c37d4284e48f075856912df8d8c1a0 Reviewed-on: https://go-review.googlesource.com/c/go/+/430936 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Than McIntosh <[email protected]> Run-TryBot: Cherry Mui <[email protected]>
1 parent e665de2 commit 5231ba2

File tree

1 file changed

+0
-1
lines changed
  • src/cmd/link/internal/ld

1 file changed

+0
-1
lines changed

src/cmd/link/internal/ld/lib.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,6 @@ func (ctxt *Link) hostlink() {
14241424
if ctxt.HeadType == objabi.Hdarwin {
14251425
if machoPlatform == PLATFORM_MACOS && ctxt.IsAMD64() {
14261426
argv = append(argv, "-Wl,-no_pie")
1427-
argv = append(argv, "-Wl,-pagezero_size,4000000")
14281427
}
14291428
}
14301429
if *flagRace && ctxt.HeadType == objabi.Hwindows {

0 commit comments

Comments
 (0)