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

Catch linker errors earlier in the JVM build by not allowing unresolved externals

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: emb-8u26, emb-9, 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Subcomponent:
    • Resolved In Build:
      b34

      Backports

        Description

        The GNU and Solaris linkers have a flag to disallow unresolved external symbols when linking a shared object:
        "-z defs"
        The JVM is not supposed to have any unresolved external symbols, so if someone accidentaly introduces one the build will complete but attempting to start the JVM by dlopen:ing it in the launcher the loader will fail.

        Suggested fix is to append "-Wl,-z,defs" to LFLAGS_VM

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mgerdin Mikael Gerdin (Inactive)
                  Reporter:
                  mgerdin Mikael Gerdin (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: