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

Michael Ellerman mpe at ellerman.id.au
Wed Apr 12 10:57:58 AEST 2023


Michael Ellerman <mpe at ellerman.id.au> writes:
> Nicholas Piggin <npiggin at gmail.com> 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


More information about the Linuxppc-dev mailing list