Set hardening (relro) flags.
Remove undefined variable.

Spotted by Olivier Girondel.