]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Use the new post-link pass to check relocations
authorNicholas Piggin <npiggin@gmail.com>
Sat, 26 Nov 2016 03:26:09 +0000 (14:26 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Apr 2017 11:26:52 +0000 (21:26 +1000)
commit52db396f9dcb6f8e8cc6519ac4e27bd1adf1fd36
tree15811dd42edca0a08b7e0ad716f332ac5a6c76c5
parent093ba3877a779a7ff33fa313fb95233842e3bc6a
powerpc: Use the new post-link pass to check relocations

Currently powerpc has to introduce a dependency on its default build
target zImage in order to run a relocation check pass over the linked
vmlinux. This is deficient because the check is not run if the plain
vmlinux target is built, or if one of the other boot targets is built.

Switch to using the kbuild post-link pass, added in commit aaac59d1b0d8
("kbuild: add arch specific post-link Makefile") in order to run this
check. In future powerpc will use this to do more complicated operations,
but initially using it for something simple is a good first step.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile
arch/powerpc/Makefile.postlink [new file with mode: 0644]