]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda5768aef5dedacb6a59284f111228e409839a09
tree475f117ca37f5045a820569c40a054cb9ad68b68
parent44a6e1204db82a954d28a7c73af3657af09ebf0f
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