Re: [PATCH v3] arm64: Handle .ARM.attributes section in linker scripts
From: Will Deacon
Date: Fri Feb 07 2025 - 06:37:54 EST
On Thu, 06 Feb 2025 10:21:38 -0700, Nathan Chancellor wrote:
> A recent LLVM commit [1] started generating an .ARM.attributes section
> similar to the one that exists for 32-bit, which results in orphan
> section warnings (or errors if CONFIG_WERROR is enabled) from the linker
> because it is not handled in the arm64 linker scripts.
>
> ld.lld: error: arch/arm64/kernel/vdso/vgettimeofday.o:(.ARM.attributes) is being placed in '.ARM.attributes'
> ld.lld: error: arch/arm64/kernel/vdso/vgetrandom.o:(.ARM.attributes) is being placed in '.ARM.attributes'
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: Handle .ARM.attributes section in linker scripts
https://git.kernel.org/arm64/c/ca0f4fe7cf71
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev