[PATCH v2] powerpc: Fail build if using recordmcount with binutils v2.37
Michael Ellerman
patch-notifications at ellerman.id.au
Mon Jul 3 15:26:59 AEST 2023
On Tue, 30 May 2023 11:44:36 +0530, Naveen N Rao wrote:
> binutils v2.37 drops unused section symbols, which prevents recordmcount
> from capturing mcount locations in sections that have no non-weak
> symbols. This results in a build failure with a message such as:
> Cannot find symbol for section 12: .text.perf_callchain_kernel.
> kernel/events/callchain.o: failed
>
> The change to binutils was reverted for v2.38, so this behavior is
> specific to binutils v2.37:
> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c09c8b42021180eee9495bd50d8b35e683d3901b
>
> [...]
Applied to powerpc/next.
[1/1] powerpc: Fail build if using recordmcount with binutils v2.37
https://git.kernel.org/powerpc/c/25ea739ea1d4d3de41acc4f4eb2d1a97eee0eb75
cheers
More information about the Linuxppc-dev
mailing list