New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: in 1.15 release notes, warn that -buildmode=pie will prevent static builds #40719
Comments
I don't think it prevent static build. You can still use external linking with Maybe the linker can warn if it is internal linking but I'm not sure we need to update the release notes. We only changed the default, and |
"will prevent static builds... unless you add an additional flag, that wasn't needed before" is what I meant. I know that you can still build static binaries. I'm just not sure that's easy to understand reading that sentence about the linker in the release notes. |
Change https://golang.org/cl/248199 mentions this issue: |
Change https://golang.org/cl/248330 mentions this issue: |
…l be used for building PIE In Go 1.15 we switched the default linking mode for PIE on Linux/AMD64 and Linux/ARM64 to internal linking. Clarify that the previous behavior (external linking) can still be used with a flag. Updates #40719. Change-Id: Ib7042622bc91e1b1aa31f520990d03b5eb6c56bb Reviewed-on: https://go-review.googlesource.com/c/go/+/248199 Reviewed-by: Ian Lance Taylor <iant@golang.org> (cherry picked from commit 50f63a7) Reviewed-on: https://go-review.googlesource.com/c/go/+/248330
From the Go1.15 release notes:
This means this classical incantation for static builds, that worked on Go1.14:
will instead silently produce dynamically linked binaries in Go 1.15.
We already had a report of a user that was stumped by the change: #40711.
Should we warn about this in the linker section of the 1.15 release notes?
cc @ianlancetaylor @cherrymui @dmitshur
The text was updated successfully, but these errors were encountered: