]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.19] cmd/link: suppress -no_pie deprecation warning on darwin
authorCherry Mui <cherryyz@google.com>
Thu, 15 Sep 2022 01:01:04 +0000 (21:01 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 21 Sep 2022 21:01:06 +0000 (21:01 +0000)
commit11728b38dc05b3b82fe5b98b0b5ce7263a3758aa
tree09163a432d44e4c6625abc98fa57a41cf0e0f690
parent064f34f048f7d47c786a13b50d13b973bb9feeda
[release-branch.go1.19] cmd/link: suppress -no_pie deprecation warning on darwin

Apparently the new darwin linker starts to emit a warning about
-no_pie deprecation. Maybe we want to switch to PIE by default.
For now, suppress the warning. This also makes it easier for
backporting to previous releases.

Fixes #55114.
Updates #55112, #54482.

Change-Id: I1a3b74c237a9d00ec3b030fc3a9940a31e5cd37e
Reviewed-on: https://go-review.googlesource.com/c/go/+/430937
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 706d84fca2b36fdf670a0d921e6a8a3b481eaa05)
Reviewed-on: https://go-review.googlesource.com/c/go/+/431517
src/cmd/link/internal/ld/lib.go