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

2023-05-29 Thread Naveen N Rao
Michael Ellerman wrote: Naveen N Rao writes: 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: .te

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

2023-05-29 Thread Michael Ellerman
Naveen N Rao writes: > 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_ker