diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -798,7 +798,7 @@ define rule_vmlinux-modpost | |||
798 | endef | 798 | endef |
799 | 799 | ||
800 | # vmlinux image - including updated kernel symbols | 800 | # vmlinux image - including updated kernel symbols |
801 | vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) vmlinux.o FORCE | 801 | vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) vmlinux.o $(kallsyms.o) FORCE |
802 | ifdef CONFIG_HEADERS_CHECK | 802 | ifdef CONFIG_HEADERS_CHECK |
803 | $(Q)$(MAKE) -f $(srctree)/Makefile headers_check | 803 | $(Q)$(MAKE) -f $(srctree)/Makefile headers_check |
804 | endif | 804 | endif |
@@ -809,7 +809,9 @@ endif | |||
809 | $(call if_changed_rule,vmlinux__) | 809 | $(call if_changed_rule,vmlinux__) |
810 | $(Q)rm -f .old_version | 810 | $(Q)rm -f .old_version |
811 | 811 | ||
812 | vmlinux.o: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) FORCE | 812 | # build vmlinux.o first to catch section mismatch errors early |
813 | $(kallsyms.o): vmlinux.o | ||
814 | vmlinux.o: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) FORCE | ||
813 | $(call if_changed_rule,vmlinux-modpost) | 815 | $(call if_changed_rule,vmlinux-modpost) |
814 | 816 | ||
815 | # The actual objects are generated when descending, | 817 | # The actual objects are generated when descending, |