Skip to main content

hardenaslr

Specifies whether to enable Address Space Layout Randomization (ASLR).

hardenaslr "value"

Parameters​

value selects the ASLR setting:

ValueDescription
DefaultAdd no ASLR override.
OffRequest disabling ASLR.
OnRequest enabling ASLR.

Applies To​

Project configurations.

Availability​

Premake 5.0.1 or later.

Limitations​

Fully static Linux executables and Off for Linux shared libraries are currently unsupported.

Windows does not allow disabling ASLR on ARM, ARM64 or ARM64EC targets.

Examples​

hardenaslr "On"

See Also​