Blame SOURCES/8207057-pr3613-hotspot-assembler-debuginfo.patch

045ef6
Make the assembler generate whatever debuginfo it can
045ef6
--- openjdk/hotspot/make/linux/makefiles/rules.make
045ef6
+++ openjdk/hotspot/make/linux/makefiles/rules.make
045ef6
@@ -34,7 +34,7 @@
045ef6
 CC_COMPILE       = $(CC) $(CXXFLAGS) $(CFLAGS)
045ef6
 CXX_COMPILE      = $(CXX) $(CXXFLAGS) $(CFLAGS)
045ef6
 
045ef6
-AS.S            = $(AS) $(ASFLAGS)
045ef6
+AS.S            = $(AS) -g $(ASFLAGS)
045ef6
 
045ef6
 COMPILE.CC       = $(CC_COMPILE) -c
045ef6
 GENASM.CC        = $(CC_COMPILE) -S
045ef6
@@ -161,12 +161,12 @@
045ef6
 %.o: %.s
045ef6
 	@echo Assembling $<
045ef6
 	$(QUIETLY) $(REMOVE_TARGET)
045ef6
-	$(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
045ef6
+	$(QUIETLY) $(AS.S) -g $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
045ef6
 
045ef6
 %.o: %.S
045ef6
 	@echo Assembling $<
045ef6
 	$(QUIETLY) $(REMOVE_TARGET)
045ef6
-	$(COMPILE.CC) -o $@ $< $(COMPILE_DONE)
045ef6
+	$(COMPILE.CC) -g -o $@ $< $(COMPILE_DONE)
045ef6
 
045ef6
 %.s: %.cpp
045ef6
 	@echo Generating assembly for $<