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: on Windows, generate dynamic base executables also on amd64 and x86 #27144

Open
rasky opened this Issue Aug 22, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@rasky
Member

rasky commented Aug 22, 2018

As part of windows/arm support, in CL125468 cmd/ld has learnt how to generate dynamic base executables, that is binaries that can be relocated at any virtual memory address. This allows the Windows kernel to turn on ASLR.

The support has been activated only on windows/arm. It should be activated also on amd64 and x86, so that Go binaries on Windows can benefit from ASLR.

/cc @alexbrainman

@ianlancetaylor ianlancetaylor changed the title from cmd/ld: on Windows, generate dynamic base executables also on amd64 and x86 to cmd/link: on Windows, generate dynamic base executables also on amd64 and x86 Aug 22, 2018

@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Aug 22, 2018

@gopherbot

This comment has been minimized.

gopherbot commented Dec 5, 2018

Change https://golang.org/cl/152759 mentions this issue: cmd/link: include relocs on Windows on all architectures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment