cmd/link: should pass -Wl,-z,relro when linking with -buildmode=pie #15485
Labels
Comments
That's what it looks like. But then, how does anything work? |
Many GNU/Linux distros pass -z relro by default. |
CL https://golang.org/cl/22687 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
By my reading of the code, we currently do all the prep in the linker to work with -zrelro when linking with -buildmode=pie, but we don't actually pass it to the linker.
@crawshaw ?
The text was updated successfully, but these errors were encountered: