Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/boot: Fix crt0.S current address branch form

Use the preferred form of branch-and-link for finding the current
address so objtool doesn't think it is an unannotated intra-function
call.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230407040924.231023-1-npiggin@gmail.com

authored by

Nicholas Piggin and committed by
Michael Ellerman
cd99dac6 8002725b

+2 -2
+2 -2
arch/powerpc/boot/crt0.S
··· 51 51 _zimage_start_lib: 52 52 /* Work out the offset between the address we were linked at 53 53 and the address where we're running. */ 54 - bl .+4 54 + bcl 20,31,.+4 55 55 p_base: mflr r10 /* r10 now points to runtime addr of p_base */ 56 56 #ifndef __powerpc64__ 57 57 /* grab the link address of the dynamic section in r11 */ ··· 274 274 mtsrr1 r10 275 275 276 276 /* Load FW address, set LR to label 1, and jump to FW */ 277 - bl 0f 277 + bcl 20,31,0f 278 278 0: mflr r10 279 279 addi r11,r10,(1f-0b) 280 280 mtlr r11