Skip to content
Closed
11 changes: 11 additions & 0 deletions make/data/hotspot-symbols/linker-script.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SUNWprivate_1.1 {
global:
*;

local:
__bss_start;
_edata;
_end;
_fini;
_init;
};
4 changes: 3 additions & 1 deletion make/hotspot/lib/CompileJvm.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ ifeq ($(call isTargetOs, windows), true)
endif

ifeq ($(TOOLCHAIN_TYPE), gcc)
JVM_LDFLAGS += -Wl,--exclude-libs,ALL
GCC_LINKER_SCRIPT := $(TOPDIR)/make/data/hotspot-symbols/linker-script.txt

JVM_LDFLAGS += -Wl,--exclude-libs,ALL -Wl,-version-script=$(GCC_LINKER_SCRIPT)
endif

################################################################################
Expand Down