Delphi 2007 (and newer) supports enabling DEP and ASLR via any of these three techniques:
–dynamicbase
‘{$DYNAMICBASE ON}’ is new in Delphi2007, ‘{$SETPEOPTFLAGS $40}' was an existing directive: info
{$SetPEOptFlags $40} works in Delphi2006