diff --git a/.gitignore b/.gitignore index 5ca55b21c..0bcb41fd0 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ .modules.order.cmd .Module.symvers.cmd +*.dmp + Module.symvers modules.order compile_commands.json diff --git a/01-Debug/01-Panic/Makefile b/01-Debug/01-Panic/Makefile index 71b7ef1c6..6f5b4dea8 100644 --- a/01-Debug/01-Panic/Makefile +++ b/01-Debug/01-Panic/Makefile @@ -40,6 +40,7 @@ CC := $(CROSS_COMPILE)gcc LD := $(CROSS_COMPILE)ld AR := $(CROSS_COMPILE)ar STRIP := $(CROSS_COMPILE)strip +OBJDUMP := $(CROSS_COMPILE)objdump export ARCH CROSS_COMPILE @@ -52,6 +53,7 @@ ifeq ($(KERNELRELEASE),) all: init @$(MAKE) modules -C $(KERNEL_DIR) M=$(LOCAL_DIR) -j$(MULTI_CORES) # @$(MAKE) modules_install -C $(KERNEL_DIR) M=$(LOCAL_DIR) INSTALL_MOD_PATH=$(KERNEL_DIR)/_install_modules INSTALL_MOD_DIR=private + @$(OBJDUMP) -hdS test_ps.o > test_ps.dmp clean: # File @@ -81,5 +83,5 @@ INC_DIRS := ccflags-y += EXTRA_CFLAGS += -Wno-error=date-time # Fix compile error on gcc 4.9 and later -EXTRA_CFLAGS += -Wno-date-time +EXTRA_CFLAGS += -Wno-date-time -g endif # ifeq ($(KERNELRELEASE),)