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

stack is executable when building with Clang on Linux

    Details

    • Subcomponent:
    • Resolved In Build:
      b13
    • OS:
      linux

      Backports

        Description

        At Google we're attempting to build hotspot on Linux with Clang.

        One issue is that the resulting libjvm.so is stack executable. When running
        hotspot, warnings are emitted about the stack being executable.

        """
        OpenJDK 64-Bit Server VM warning: You have loaded library ...build/linux-x86_64-normal-server-release/jdk/lib/server/libjvm.so which might have disabled stack guard. The VM will try to fix the stack guard now.
        It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
        OpenJDK 64-Bit Server VM warning: Unable to fix stack guard. Giving up.
        """

        Consensus from the build-dev list suggests that "-Wl,-z,noexecstack" should be added as a build linker option for Clang in flags-ldflags.m4.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  martin Martin Buchholz
                  Reporter:
                  rasbold Chuck Rasbold
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: