# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/glibc32/powerpc32le.patch # Copyright (C) 2023 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Do not use '-mmultiple' on little-endian PowerPC systems, since those instructions do not work when the processor is in little-endian mode. The exceptions are PPC740 and PPC750 which permit these instructions in little-endian mode. --- glibc-2.36/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S.vanilla 2023-01-07 17:17:49.726720823 +0100 +++ glibc-2.36/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S 2023-01-07 17:45:52.919816459 +0100 @@ -39,7 +39,10 @@ /* Set up stack frame for parent. */ stwu r1,-32(r1) cfi_adjust_cfa_offset (32) - stmw r28,16(r1) + stw r28,16(r1) + stw r29,20(r1) + stw r30,24(r1) + stw r31,28(r1) /* Set up stack frame for child. */ clrrwi r4,r4,4 @@ -80,7 +83,11 @@ L(parent): /* Parent. Restore registers & return. */ - lmw r28,16(r1) + lwz r28,16(r1) + lwz r29,20(r1) + lwz r30,24(r1) + lwz r31,28(r1) + addi r1,r1,32 bnslr+ b __syscall_error@local