Address space layout randomization (ASLR)

Updated: April 19, 2023

Address space layout randomization varies the location of data and instructions each time an executable is loaded.

To support ASLR, your binary must be compiled as position independent. Use the -fPIC compiler option to compile libraries and the -fPIE option when compiling binaries. The QNX Neutrino compiler utilities include these options by default.

On a running QNX system, the -m~r command line option to procnto disables ASLR. This option should not be passed to procnto on systems where ASLR should be enabled.

For more information, see Address space layout randomization (ASLR) in the "Security features for system integrators" section.