2018-07-23 14:11:36 +00:00
|
|
|
# HG changeset patch
|
|
|
|
# User sgehwolf
|
|
|
|
# Date 1530808022 -7200
|
|
|
|
# Thu Jul 05 18:27:02 2018 +0200
|
|
|
|
# Node ID 5ba59d58d976db456c4455640111e8107b8d80e8
|
|
|
|
# Parent ad057f2e3211cd18bc56550d8a2c400d92ec35b1
|
|
|
|
8206425: .gnu_debuglink sections added unconditionally when no debuginfo is stripped
|
|
|
|
Summary: Only add .gnu_debuglink sections when there is some stripping done.
|
|
|
|
Reviewed-by: erikj, dholmes
|
2016-10-14 12:46:51 +00:00
|
|
|
|
2018-07-23 14:11:36 +00:00
|
|
|
diff --git openjdk.orig/hotspot/make/linux/makefiles/jsig.make openjdk/hotspot/make/linux/makefiles/jsig.make
|
|
|
|
--- openjdk.orig/hotspot/make/linux/makefiles/jsig.make
|
2016-10-14 12:46:51 +00:00
|
|
|
+++ openjdk/hotspot/make/linux/makefiles/jsig.make
|
|
|
|
@@ -57,14 +57,15 @@
|
|
|
|
$(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) $(EXTRA_CFLAGS) -o $@ $< -ldl
|
|
|
|
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
|
|
|
|
$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJSIG_DEBUGINFO)
|
|
|
|
+ ifeq ($(STRIP_POLICY),all_strip)
|
|
|
|
$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJSIG_DEBUGINFO) $@
|
|
|
|
- ifeq ($(STRIP_POLICY),all_strip)
|
|
|
|
$(QUIETLY) $(STRIP) $@
|
|
|
|
else
|
|
|
|
ifeq ($(STRIP_POLICY),min_strip)
|
|
|
|
+ $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJSIG_DEBUGINFO) $@
|
|
|
|
$(QUIETLY) $(STRIP) -g $@
|
|
|
|
+ endif
|
|
|
|
# implied else here is no stripping at all
|
|
|
|
- endif
|
|
|
|
endif
|
|
|
|
ifeq ($(ZIP_DEBUGINFO_FILES),1)
|
|
|
|
$(ZIPEXE) -q -y $(LIBJSIG_DIZ) $(LIBJSIG_DEBUGINFO)
|
2018-07-23 14:11:36 +00:00
|
|
|
diff --git openjdk.orig/hotspot/make/linux/makefiles/saproc.make openjdk/hotspot/make/linux/makefiles/saproc.make
|
|
|
|
--- openjdk.orig/hotspot/make/linux/makefiles/saproc.make
|
2016-10-14 12:46:51 +00:00
|
|
|
+++ openjdk/hotspot/make/linux/makefiles/saproc.make
|
2018-07-23 14:11:36 +00:00
|
|
|
@@ -100,14 +100,15 @@
|
2016-10-14 12:46:51 +00:00
|
|
|
-lthread_db
|
|
|
|
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
|
|
|
|
$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO)
|
|
|
|
+ ifeq ($(STRIP_POLICY),all_strip)
|
|
|
|
$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@
|
|
|
|
- ifeq ($(STRIP_POLICY),all_strip)
|
|
|
|
$(QUIETLY) $(STRIP) $@
|
|
|
|
else
|
|
|
|
ifeq ($(STRIP_POLICY),min_strip)
|
|
|
|
+ $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@
|
|
|
|
$(QUIETLY) $(STRIP) -g $@
|
|
|
|
+ endif
|
|
|
|
# implied else here is no stripping at all
|
|
|
|
- endif
|
|
|
|
endif
|
|
|
|
ifeq ($(ZIP_DEBUGINFO_FILES),1)
|
|
|
|
$(ZIPEXE) -q -y $(LIBSAPROC_DIZ) $(LIBSAPROC_DEBUGINFO)
|
2018-07-23 14:11:36 +00:00
|
|
|
diff --git openjdk.orig/hotspot/make/linux/makefiles/vm.make openjdk/hotspot/make/linux/makefiles/vm.make
|
|
|
|
--- openjdk.orig/hotspot/make/linux/makefiles/vm.make
|
2016-10-14 12:46:51 +00:00
|
|
|
+++ openjdk/hotspot/make/linux/makefiles/vm.make
|
|
|
|
@@ -358,14 +358,15 @@
|
|
|
|
|
|
|
|
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
|
|
|
|
$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
|
2018-07-23 14:11:36 +00:00
|
|
|
+ ifeq ($(STRIP_POLICY),all_strip)
|
|
|
|
$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
|
|
|
|
- ifeq ($(STRIP_POLICY),all_strip)
|
2016-10-14 12:46:51 +00:00
|
|
|
$(QUIETLY) $(STRIP) $@
|
|
|
|
else
|
|
|
|
ifeq ($(STRIP_POLICY),min_strip)
|
|
|
|
+ $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
|
2018-07-23 14:11:36 +00:00
|
|
|
$(QUIETLY) $(STRIP) -g $@
|
2016-10-14 12:46:51 +00:00
|
|
|
+ endif
|
|
|
|
# implied else here is no stripping at all
|
|
|
|
- endif
|
|
|
|
endif
|
|
|
|
ifeq ($(ZIP_DEBUGINFO_FILES),1)
|
|
|
|
$(ZIPEXE) -q -y $(LIBJVM_DIZ) $(LIBJVM_DEBUGINFO)
|