Search code examples
pascallazarusaslr

How to enable ASLR for a lazarus exe project?


executable files on windows have a .reloc section which stores information to rebase the image. But EXE built by lazarus doesn't have that. How I enable dynamic base on a lazarus project if I really need ASLR?


Solution

  • Use Editbin tool with /DYNAMICBASE or /HIGHENTROPYVA parameter to edit your executable .