2 Replies Latest reply on Aug 25, 2011 7:37 PM by 876289

    CC equivalent of security related switchs


      Are there any compiler or linker options that perform similar to:

      1) Buffer overflow detection (Microsoft's /GS and GNU's -fstack-protector)

      2) Prevent data execution (Microsoft's /NXCOMPAT)

      3) Position independent executables ( Microsoft's /DYNAMICBASE and GNU's -fpie)

      I'm using Solaris Studio 12.2 and not seeing anything in the compiler's documentation. Are there any recommendations hardening executables during the build process? Thanks for any help.