link the Linux binaries with -z relro lazarus / 32-Linux ---------------------------------------------------------------------- Gizmo · 2015-12-17 21:18 Someone on Github has asked me the following about one of my projects: QuoteIs it possible to link the Linux binaries with -z relro? When using gcc that would be done by adding -Wl,-z,relro to the LDFLAGS (see https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-Wl.2C-z.2Crelro). Can anyone help me with understanding what that means, and whether it is possible using Lazarus 1.4.4 and FPC 2.6.4? ---------------------------------------------------------------------- marcov · 2015-12-17 21:41 FPC adds to the linker commandline via the -k parameter: -k"-z zelro"  or -k-z  -kzelro ---------------------------------------------------------------------- Gizmo · 2015-12-18 08:24 Thanks for the help. I build my programs using Lazarus itself (f9 etc) so I assume I need to add this is the compiler options of Lazarus?  Is that right? And can you tell me what it actually achieves? I'm still unclear as to the purpose of it. ---------------------------------------------------------------------- marcov · 2015-12-18 08:38 No idea, just look in the manual of LD.