Subject: Re: [PATCH] powerpc/boot: Fix crt0.S current address branch form

From: Michael Ellerman <[email-masked]>
Date: Wed, 12 Apr 2023 10:57:58 +1000

Michael Ellerman <[email-masked]> writes:
> Nicholas Piggin <[email-masked]> writes:
>> 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.
>
> We don't run objtool on this code in mainline AFAIK. Because BOOTAS
> doesn't call it.

But as Nick pointed out, if you run:

 $ make arch/powerpc/boot/crt0.o

It does run objtool, because it uses the generic cmd_as_o_S rule instead
of the BOOTAS rule.

cheers