[RFC/PATCH] boot debugging symbols
Amos Waterland
apw at us.ibm.com
Mon Feb 28 11:19:46 EST 2005
It is really useful when debugging early boot on simulator to have debug
symbols in the 32-bit code that uncompresses the kernel proper. Is this
patch all right, or is a CONFIG_BOOT_DEBUG_INFO also needed?
-------------- next part --------------
===== arch/ppc64/boot/Makefile 1.22 vs edited =====
--- 1.22/arch/ppc64/boot/Makefile 2005-01-08 19:42:42 -05:00
+++ edited/arch/ppc64/boot/Makefile 2005-02-27 18:52:03 -05:00
@@ -33,6 +33,11 @@
BOOTOBJCOPY := $(CROSS32_COMPILE)objcopy
OBJCOPYFLAGS := contents,alloc,load,readonly,data
+ifdef CONFIG_DEBUG_INFO
+BOOTCFLAGS += -g
+BOOTAFLAGS += -g
+endif
+
src-boot := crt0.S string.S prom.c main.c zlib.c imagesize.c div64.S
src-boot := $(addprefix $(obj)/, $(src-boot))
obj-boot := $(addsuffix .o, $(basename $(src-boot)))
More information about the Linuxppc64-dev
mailing list