-
-
Notifications
You must be signed in to change notification settings - Fork 15k
use ASLR on Windows #16514
Copy link
Copy link
Closed
Labels
A-securityArea: Security (example: address space layout randomization).Area: Security (example: address space layout randomization).C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.O-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Metadata
Metadata
Assignees
Labels
A-securityArea: Security (example: address space layout randomization).Area: Security (example: address space layout randomization).C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.O-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This should be as simple as passing
--dynamicbaseto the linker for both libraries and executables. However, the necessary relocations are never generated by MinGW or MinGW-w64 for executables so nothing is actually randomized without also passing--export-all-symbols. The-pieswitch is also broken and results in a messed up entry point, but it may not actually be required.