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?
Asked
Active
Viewed 228 times
2

Kelvin Zhang
- 942
- 1
- 7
- 24
-
Does [this](http://stackoverflow.com/q/8066266/62576) help? – Ken White Aug 26 '16 at 20:58
-
Probably not. Very Delphi specific. Further the absence of relocation tables is a show stopper. – David Heffernan Aug 26 '16 at 21:04
-
If I were you I'd look at the command line being passed to the compiler. Reference the fpc docs http://www.freepascal.org/docs-html/user/usersu15.html I bet it is disabling reloc section. Change that and you will be on your way. – David Heffernan Aug 26 '16 at 21:06
-
-WB -WR. it seems. No experience though – Marco van de Voort Aug 27 '16 at 09:14
1 Answers
1
Use Editbin tool with /DYNAMICBASE or /HIGHENTROPYVA parameter to edit your executable .

Mojtaba Tajik
- 1,725
- 16
- 34