regression with binutils 2.28 for ppc

Peter Bergner bergner@linux.ibm.com
Wed Feb 16 14:32:11 GMT 2022


On 2/16/22 7:35 AM, Waldemar Brodkorb wrote:
> since commit b25f942e18d6ecd7ec3e2d2e9930eb4f996c258a I am getting
> following error when building a Linux Kernel targeting
> qemu-system-ppc (-M macppc).
> 
> {standard input}: Assembler messages:
> {standard input}:2156: Error: unrecognized opcode: `ptesync'
> gmake[8]: *** [scripts/Makefile.build:288: arch/powerpc/lib/sstep.o]
> Error 1
> gmake[7]: *** [scripts/Makefile.build:550: arch/powerpc/lib] Error 2
> gmake[6]: *** [Makefile:1831: arch/powerpc] Error 2
> gmake[5]: ***
> [/home/wbx/embedded-test/openadk/mk/kernel-build.mk:91:
> /home/wbx/embedded-test/openadk/build_qemu-ppc-macppc_uclibc-ng_hard/linux/vmlinux]
> Error 2

The ptesync insn is enabled with the PPC64 flag, so should be available for
all 64-bit assembles and disabled for all 32-bit assembles.  What assembler
options are you using?  It's hard to tell whether you are building a
64-bit kernel, in which ptesync should be fine or whether you are building
a 32-bit kernel, in which case, ptesync would be a kernel error (for using it).

Peter



More information about the Binutils mailing list