powerpc/64: Change the way relocation copy is calculated
authorNicholas Piggin <npiggin@gmail.com>
Wed, 28 Sep 2016 01:31:47 +0000 (11:31 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 02:06:55 +0000 (13:06 +1100)
commit573819e3433278cde17e7b93e101e59e96f19ccf
tree475f117ca37f5045a820569c40a054cb9ad68b68
parentbe642c3457e75983be6f1f4bddcc77c9e2ed4650
powerpc/64: Change the way relocation copy is calculated

With a subsequent patch to put text into different sections,
(_end - _stext) can no longer be computed at link time to determine
the end of the copy. Instead, calculate it at runtime with
(copy_to_here - _stext) + (_end - copy_to_here).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/head_64.S