diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -722,6 +722,16 @@ quiet_cmd_kallsyms = KSYM $@ | |||
722 | # Needs to visit scripts/ before $(KALLSYMS) can be used. | 722 | # Needs to visit scripts/ before $(KALLSYMS) can be used. |
723 | $(KALLSYMS): scripts ; | 723 | $(KALLSYMS): scripts ; |
724 | 724 | ||
725 | # Generate some data for debugging strange kallsyms problems | ||
726 | debug_kallsyms: .tmp_map$(last_kallsyms) | ||
727 | |||
728 | .tmp_map%: .tmp_vmlinux% FORCE | ||
729 | ($(OBJDUMP) -h $< | $(AWK) '/^ +[0-9]/{print $$4 " 0 " $$2}'; $(NM) $<) | sort > $@ | ||
730 | |||
731 | .tmp_map3: .tmp_map2 | ||
732 | |||
733 | .tmp_map2: .tmp_map1 | ||
734 | |||
725 | endif # ifdef CONFIG_KALLSYMS | 735 | endif # ifdef CONFIG_KALLSYMS |
726 | 736 | ||
727 | # vmlinux image - including updated kernel symbols | 737 | # vmlinux image - including updated kernel symbols |