Rev 8 | Rev 11 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8 | Rev 10 | ||
---|---|---|---|
Line 293... | Line 293... | ||
293 | 293 | ||
294 | // "--warn-shared-textrel " |
294 | // "--warn-shared-textrel " |
295 | // "-zrelro " |
295 | // "-zrelro " |
296 | // "-znow " |
296 | // "-znow " |
297 | ADD_LINKER_ARG ("--warn-shared-textrel"); |
297 | ADD_LINKER_ARG ("--warn-shared-textrel"); |
298 | ADD_LINKER_ARG ("-zrelro"); |
298 | ADD_LINKER_ARG ("-zrelro"); // set relocations to be read-only |
299 | ADD_LINKER_ARG ("-znow"); |
299 | ADD_LINKER_ARG ("-znow"); // do immediate binding of dylibs (the opposite would be -zlazy, which is less secure) |
300 | 300 | ||
301 | // since clang doesn't seem to generate .note.GNU-stack sections in output ELF files we explicitly specify the linker that we don't want an executable stack |
301 | // since clang doesn't seem to generate .note.GNU-stack sections in output ELF files we explicitly specify the linker that we don't want an executable stack |
302 | // TODO: fix this in clang itself |
302 | // TODO: fix this in clang itself |
303 | ADD_LINKER_ARG ("-znoexecstack"); |
303 | ADD_LINKER_ARG ("-znoexecstack"); |
304 | 304 |