Re: [PATCH] powerpc: Avoid dead code/data elimination when using recordmcount

2023-03-04 Thread Michael Ellerman
On Wed, 22 Feb 2023 00:03:31 +1100, Michael Ellerman wrote: > Although powerpc now has objtool mcount support, it's not enabled in all > configurations due to dependencies. > > On those configurations, with some linkers (binutils 2.37 at least), > it's still possible to hit the dreaded

[PATCH] powerpc: Avoid dead code/data elimination when using recordmcount

2023-02-21 Thread Michael Ellerman
Although powerpc now has objtool mcount support, it's not enabled in all configurations due to dependencies. On those configurations, with some linkers (binutils 2.37 at least), it's still possible to hit the dreaded "recordmcount bug", eg. errors such as: CC kernel/kexec_file.o