ea15529
--- openjdk/make/common/NativeCompilation.gmk
ea15529
+++ openjdk/make/common/NativeCompilation.gmk
ea15529
@@ -437,29 +437,6 @@
ea15529
 
ea15529
         ifneq ($(OPENJDK_TARGET_OS), macosx)   # OBJCOPY is not used on MacOS X
ea15529
           ifneq ($(OPENJDK_TARGET_OS), windows)  # nor on Windows
ea15529
-            ifeq ($(OPENJDK_TARGET_OS), solaris)
ea15529
-              # gobjcopy crashes on "empty" section headers with the SHF_ALLOC flag set.
ea15529
-              # Use $(FIX_EMPTY_SEC_HDR_FLAGS) to clear the SHF_ALLOC flag (if set) from
ea15529
-              # empty section headers until a fixed $(OBJCOPY) is available.
ea15529
-              # An empty section header has sh_addr == 0 and sh_size == 0.
ea15529
-              # This problem has only been seen on Solaris X64, but we call this tool
ea15529
-              # on all Solaris builds just in case.
ea15529
-              #
ea15529
-              # $(OBJCOPY) --add-gnu-debuglink=... corrupts SUNW_* sections.
ea15529
-              # Use $(ADD_GNU_DEBUGLINK) until a fixed $(OBJCOPY) is available.
ea15529
-              $$($1_OBJECT_DIR)/$$(LIBRARY_PREFIX)$$($1_LIBRARY).debuginfo : $$($1_TARGET) \
ea15529
-				$(FIX_EMPTY_SEC_HDR_FLAGS) $(ADD_GNU_DEBUGLINK)
ea15529
-		$(RM) $$@
ea15529
-		$(FIX_EMPTY_SEC_HDR_FLAGS) $(LOG_INFO) $$<
ea15529
-		$(OBJCOPY) --only-keep-debug $$< $$@
ea15529
-		$(CD) $$(@D) && $(ADD_GNU_DEBUGLINK) $(LOG_INFO) $$(@F) $$<
ea15529
-            else # not solaris
ea15529
-              $$($1_OBJECT_DIR)/$$(LIBRARY_PREFIX)$$($1_LIBRARY).debuginfo : $$($1_TARGET)
ea15529
-		$(RM) $$@
ea15529
-		$(OBJCOPY) --only-keep-debug $$< $$@
ea15529
-		$(CD) $$(@D) && $(OBJCOPY) --add-gnu-debuglink=$$(@F) $$<
ea15529
-            endif # Touch to not retrigger rule on rebuild
ea15529
-		$(TOUCH) $$@
ea15529
           endif # !windows
ea15529
         endif # !macosx
ea15529
 
ea15529
@@ -483,7 +460,6 @@
ea15529
             $1 += $$($1_OUTPUT_DIR)/$$($1_LIBRARY).map \
ea15529
                 $$($1_OUTPUT_DIR)/$$($1_LIBRARY).pdb
ea15529
           else ifneq ($(OPENJDK_TARGET_OS), macosx) # MacOS X does not use .debuginfo files
ea15529
-            $1 += $$($1_OUTPUT_DIR)/$$(LIBRARY_PREFIX)$$($1_LIBRARY).debuginfo
ea15529
           endif
ea15529
         endif
ea15529
       endif
ea15529
@@ -522,28 +498,8 @@
ea15529
         ifneq ($(OPENJDK_TARGET_OS), macosx)   # OBJCOPY is not used on MacOS X
ea15529
           ifneq ($(OPENJDK_TARGET_OS), windows)  # nor on Windows
ea15529
             ifeq ($(OPENJDK_TARGET_OS), solaris)
ea15529
-              # gobjcopy crashes on "empty" section headers with the SHF_ALLOC flag set.
ea15529
-              # Use $(FIX_EMPTY_SEC_HDR_FLAGS) to clear the SHF_ALLOC flag (if set) from
ea15529
-              # empty section headers until a fixed $(OBJCOPY) is available.
ea15529
-              # An empty section header has sh_addr == 0 and sh_size == 0.
ea15529
-              # This problem has only been seen on Solaris X64, but we call this tool
ea15529
-              # on all Solaris builds just in case.
ea15529
-              #
ea15529
-              # $(OBJCOPY) --add-gnu-debuglink=... corrupts SUNW_* sections.
ea15529
-              # Use $(ADD_GNU_DEBUGLINK) until a fixed $(OBJCOPY) is available.
ea15529
-              $$($1_OBJECT_DIR)/$$($1_PROGRAM).debuginfo : $$($1_TARGET) \
ea15529
-				$(FIX_EMPTY_SEC_HDR_FLAGS) $(ADD_GNU_DEBUGLINK)
ea15529
-		$(RM) $$@
ea15529
-		$(FIX_EMPTY_SEC_HDR_FLAGS) $(LOG_INFO) $$<
ea15529
-		$(OBJCOPY) --only-keep-debug $$< $$@
ea15529
-		$(CD) $$(@D) && $(ADD_GNU_DEBUGLINK) $(LOG_INFO) $$(@F) $$<
ea15529
             else # not solaris
ea15529
-              $$($1_OBJECT_DIR)/$$($1_PROGRAM).debuginfo : $$($1_TARGET)
ea15529
-		$(RM) $$@
ea15529
-		$(OBJCOPY) --only-keep-debug $$< $$@
ea15529
-		$(CD) $$(@D) && $(OBJCOPY) --add-gnu-debuglink=$$(@F) $$<
ea15529
             endif
ea15529
-		$(TOUCH) $$@
ea15529
           endif # !windows
ea15529
         endif # !macosx
ea15529
 
ea15529
@@ -567,7 +523,6 @@
ea15529
             $1 += $$($1_OUTPUT_DIR)/$$($1_PROGRAM).map \
ea15529
                 $$($1_OUTPUT_DIR)/$$($1_PROGRAM).pdb
ea15529
           else ifneq ($(OPENJDK_TARGET_OS), macosx) # MacOS X does not use .debuginfo files
ea15529
-            $1 += $$($1_OUTPUT_DIR)/$$($1_PROGRAM).debuginfo
ea15529
           endif
ea15529
         endif
ea15529
       endif