regression with binutils 2.28 for ppc
Peter Bergner
bergner@linux.ibm.com
Thu Feb 17 20:03:24 GMT 2022
On 2/17/22 3:28 AM, Waldemar Brodkorb wrote:
> -mcpu=powerpc -mbig-endian -m32 -msoft-float -mcpu=powerpc64 -mno-altivec -mno-vsx
So a 32-bit compile, which is why the assembler complains about ptesync.
You could try adding -Wa,-mppc64 or -Wa,-many to your options as a work around.
Newish GCCs removed passing -many to the assembler and the commit you
mentioned changed handling of sticky cpu options which is exposing the
issue.
The use of those ptesyncs in the kernel really needs to be audited though!
If they are legitimate, then the inline assembler needs to wrap their
use with ".machine push ; .machine ppc64 ; ptesync ; .machine pop".
Peter
More information about the Binutils
mailing list