powerpc/64: Tool to check head sections location sanity
authorNicholas Piggin <npiggin@gmail.com>
Thu, 11 May 2017 17:40:39 +0000 (03:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 May 2017 04:59:51 +0000 (14:59 +1000)
commitc494adefef9fcd0de172132e20f102d44c62fa2f
tree77dbde0b052285eaf437f98193e02388775f24d1
parent951eedebcdea06fdcc742c82dc347509ce0e1ba4
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>
arch/powerpc/Makefile.postlink
arch/powerpc/include/asm/head-64.h
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/tools/head_check.sh [new file with mode: 0644]