You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
powerpc/64: Tool to check head sections location sanity
Use a tool to check that the location of "fixed sections" are where we expected them to be, which catches cases the linker script can't (stubs being added to start of .text section), and which ends up being neater. Sample output: ERROR: start_text address is c000000000008100, should be c000000000008000 ERROR: see comments in arch/powerpc/tools/head_check.sh Signed-off-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Fold in fix from Nick for 4.6 era toolchains] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
951eedebcd
commit
c494adefef
@@ -10,6 +10,9 @@ __archpost:
|
||||
-include include/config/auto.conf
|
||||
include scripts/Kbuild.include
|
||||
|
||||
quiet_cmd_head_check = CHKHEAD $@
|
||||
cmd_head_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/head_check.sh "$(NM)" "$@"
|
||||
|
||||
quiet_cmd_relocs_check = CHKREL $@
|
||||
ifdef CONFIG_PPC_BOOK3S_64
|
||||
cmd_relocs_check = \
|
||||
@@ -24,6 +27,9 @@ endif
|
||||
|
||||
vmlinux: FORCE
|
||||
@true
|
||||
ifdef CONFIG_PPC64
|
||||
$(call cmd,head_check)
|
||||
endif
|
||||
ifdef CONFIG_RELOCATABLE
|
||||
$(call if_changed,relocs_check)
|
||||
endif
|
||||
@@ -32,7 +38,7 @@ endif
|
||||
@true
|
||||
|
||||
clean:
|
||||
@true
|
||||
rm -f .tmp_symbols.txt
|
||||
|
||||
PHONY += FORCE clean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user