Re: [PATCH v2] powerpc: Fail build if using recordmcount with binutils v2.37

2023-07-02 Thread Michael Ellerman
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 se

[PATCH v2] powerpc: Fail build if using recordmcount with binutils v2.37

2023-05-29 Thread Naveen N Rao
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/c