1 # ===========================================================================
2 # Post-link powerpc pass
3 # ===========================================================================
5 # 1. Check that vmlinux relocations look sane
10 -include include/config/auto.conf
11 include scripts/Kbuild.include
13 quiet_cmd_head_check = CHKHEAD $@
14 cmd_head_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/head_check.sh "$(NM)" "$@"
16 quiet_cmd_relocs_check = CHKREL $@
17 ifdef CONFIG_PPC_BOOK3S_64
19 $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" ; \
20 $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@"
23 $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@"
26 # `@true` prevents complaint when there is nothing to be done
31 $(call cmd,head_check)
33 ifdef CONFIG_RELOCATABLE
34 $(call if_changed,relocs_check)
41 rm -f .tmp_symbols.txt