Blame SOURCES/hotspot-assembler-debuginfo.patch

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