Re: [REGRESSION] mainline/master: (build) in arch/arm/kernel/entry-common.o (/tmp/kci/linux/scripts/Makefile...

Nathan Chancellor <[email protected]>
Newsgroups dev.linux.lists.regressions,dev.linux.lists.kernelci
Message-ID <20260820000900.GA3034882@ax162>
On Wed, Aug 19, 2026 at 11:08:39AM +0300, Ard Biesheuvel wrote:
> We're falling back to the mov_l asm macro in this case.
> 
> This is unfortunate, because the only reason to avoid these group
> relocations is making allyesconfig work, now that LLD has caught up.
> 
> I did not manage to reproduce this, but if this is something we care
> deeply about, we might tweak mov_l as below when COMPILE_TEST is set,
> so that the literal pool is always in range.

I am not sure that we do, at least currently, since Arnd's patch to turn
off OABI compat for everything but StrongARM has now landed in mainline,
getting rid of the originally reported error. If this error comes back,
we could look at a better fix.

> --- a/arch/arm/include/asm/assembler.h
> +++ b/arch/arm/include/asm/assembler.h
> @@ -636,6 +636,12 @@
>         .macro          mov_l, dst:req, imm:req, cond
>         .if             __LINUX_ARM_ARCH__ < 7
>         ldr\cond        \dst, =\imm
> +#ifdef CONFIG_COMPILE_TEST
> +       /* The literal may go out of range in pathological cases */
> +       b               .L\@
> +       .ltorg
> +.L\@:
> +#endif
>         .else
>         movw\cond       \dst, #:lower16:\imm
>         movt\cond       \dst, #:upper16:\imm

-- 
Cheers,
Nathan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.