Re: [PATCH] arm64: Improve HAVE_DYNAMIC_FTRACE_WITH_REGS selection for clang

From: Will Deacon
Date: Thu Apr 14 2022 - 06:31:13 EST


On Wed, 13 Apr 2022 11:14:21 -0700, Nathan Chancellor wrote:
> Will and Anders reported that using just 'CC=clang' with CONFIG_FTRACE=y
> and CONFIG_STACK_TRACER=y would result in an error while linking:
>
> aarch64-linux-gnu-ld: .init.data has both ordered [`__patchable_function_entries' in init/main.o] and unordered [`.meminit.data' in mm/sparse.o] sections
> aarch64-linux-gnu-ld: final link failed: bad value
>
> This error was exposed by commit f12b034afeb3 ("scripts/Makefile.clang:
> default to LLVM_IAS=1") in combination with binutils older than 2.36.
>
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: Improve HAVE_DYNAMIC_FTRACE_WITH_REGS selection for clang
https://git.kernel.org/arm64/c/45bd8951806e

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev