]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit242384893e94631e70872239e65b462c2af55c83
tree77dbde0b052285eaf437f98193e02388775f24d1
parent55432eef17c01241c27e7541649245648281c83d
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]