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

gcc and clang should use the same ld flags

    Details

      Description

      If I build openjdk with clang, I see:

      """
      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.
      """

      in general, gcc and clang should treat all linker flags the same, especially given that clang tries hard to be gcc-compatible. E.g. -z relro

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                martin Martin Buchholz
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: