toolchain: gcc: import patch fixing asm machine directive for powerpc
authorNick Hainke <vincent@systemli.org>
Tue, 27 Dec 2022 23:02:41 +0000 (00:02 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 28 Dec 2022 19:54:54 +0000 (20:54 +0100)
commitb23cab2fcfe893f860018013feb591395c5c32b0
tree471fa14dd06e28bed4198249b813fd026ee83cae
parent6be9e3e63685a11577f6650b51f45c72ef82180c
toolchain: gcc: import patch fixing asm machine directive for powerpc

Applications with libmbedtls, e.g. curl, fail on mpc85xx with:
  curl[7227]: illegal instruction (4) at b7c94288 nip b7c94288 lr b7c6b528 code 1 in libmbedcrypto.so.2.28.1[b7c3e000+7e000]
  curl[7227]: code: 3d7e0000 809e8004 91490000 816b814c 7d6903a6 4e800421 80010024 83c10018
  curl[7227]: code: 38210020 7c0803a6 4e800020 9421fff0 <7d4d42e67c6c42e6 7d2d42e6 7c0a4840

This is due to a bug in gcc-11.2.0. It is fixed with gcc-11.3.0.
Import the patch that is fixing the issue.

Signed-off-by: Nick Hainke <vincent@systemli.org>
toolchain/gcc/patches/11.2.0/020-powerpc-Fix-asm-machine-directive-for-some-CPUs.patch [new file with mode: 0644]