Details
-
Type:
Enhancement
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: emb-8u26, emb-9, 9
-
Fix Version/s: 9
-
Component/s: infrastructure
-
Labels:
-
Subcomponent:
-
Resolved In Build:b34
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083068 | emb-9 | Mikael Gerdin | P3 | Resolved | Fixed | b34 |
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
"-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
- backported by
-
JDK-8083068 Catch linker errors earlier in the JVM build by not allowing unresolved externals
-
- Resolved
-