Skip to content
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

cmd/link: should pass -Wl,-z,relro when linking with -buildmode=pie #15485

Closed
mwhudson opened this issue Apr 29, 2016 · 3 comments
Closed

cmd/link: should pass -Wl,-z,relro when linking with -buildmode=pie #15485

mwhudson opened this issue Apr 29, 2016 · 3 comments

Comments

@mwhudson
Copy link
Contributor

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 ?

@crawshaw
Copy link
Member

That's what it looks like. But then, how does anything work?

@ianlancetaylor
Copy link
Contributor

Many GNU/Linux distros pass -z relro by default.

@gopherbot
Copy link

CL https://golang.org/cl/22687 mentions this issue.

@golang golang locked and limited conversation to collaborators May 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants