Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8348582

Set -fstack-protector when building with clang

XMLWordPrintable

    • b08
    • generic
    • linux

        We noticed -fstack-protector is set when building on Linux with gcc but we miss it in the Hotspot compile calls when building on Linux with clang.
        AIX/clang has already the -fstack-protector setting.
        MacOS/clang misses it.

        Some info about the flag can be found here :
        https://developers.redhat.com/articles/2022/06/02/use-compiler-flags-stack-protection-gcc-and-clang
        https://clang.llvm.org/docs/ClangCommandLineReference.html

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: