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

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

XMLWordPrintable

    • b34

        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

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

                Created:
                Updated:
                Resolved: