Using conditional branches between two files is hasardous,
they may get linked to far from each other.
arch/powerpc/kvm/book3s_64_entry.o:(.text+0x3ec): relocation truncated
to fit: R_PPC64_REL14 (stub) against symbol `system_reset_common'
defined in .text section in arch/powerpc/kernel/head_64.o
Reorganise the code to use non conditional branches.
Cc: Nicholas Piggin <npiggin@gmail.com>
Fixes: 89d35b239101 ("KVM: PPC: Book3S HV P9: Implement the rest of the P9 path in C")
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kvm/book3s_64_entry.S | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
From: Nicholas Piggin <npiggin@gmail.com> Date: 2022-03-29 08:22:50
Excerpts from Christophe Leroy's message of March 27, 2022 5:32 pm:
Using conditional branches between two files is hasardous,
they may get linked to far from each other.
arch/powerpc/kvm/book3s_64_entry.o:(.text+0x3ec): relocation truncated
to fit: R_PPC64_REL14 (stub) against symbol `system_reset_common'
defined in .text section in arch/powerpc/kernel/head_64.o
Reorganise the code to use non conditional branches.
Thanks for the fix, I agree this is better.
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
quoted hunk
Cc: Nicholas Piggin <npiggin@gmail.com>
Fixes: 89d35b239101 ("KVM: PPC: Book3S HV P9: Implement the rest of the P9 path in C")
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kvm/book3s_64_entry.S | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
From: Michael Ellerman <hidden> Date: 2022-04-10 12:28:13
On Sun, 27 Mar 2022 09:32:26 +0200, Christophe Leroy wrote:
Using conditional branches between two files is hasardous,
they may get linked to far from each other.
arch/powerpc/kvm/book3s_64_entry.o:(.text+0x3ec): relocation truncated
to fit: R_PPC64_REL14 (stub) against symbol `system_reset_common'
defined in .text section in arch/powerpc/kernel/head_64.o
[...]