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

    CC equivalent of security related switchs

    876289
      Hi,

      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.

      Peter