* added python-wheel (0.42.0) - The official binary distribution format for Python
[t2sde.git] / package / base / glibc32 / powerpc32le.patch
blobdb906980c526180dea2b6f45e2291094d6c604a8
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/glibc32/powerpc32le.patch
3 # Copyright (C) 2023 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Do not use '-mmultiple' on little-endian PowerPC systems, since those
15 instructions do not work when the processor is in little-endian mode.
16 The exceptions are PPC740 and PPC750 which permit these instructions
17 in little-endian mode.
19 --- glibc-2.36/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S.vanilla 2023-01-07 17:17:49.726720823 +0100
20 +++ glibc-2.36/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S 2023-01-07 17:45:52.919816459 +0100
21 @@ -39,7 +39,10 @@
22 /* Set up stack frame for parent. */
23 stwu r1,-32(r1)
24 cfi_adjust_cfa_offset (32)
25 - stmw r28,16(r1)
26 + stw r28,16(r1)
27 + stw r29,20(r1)
28 + stw r30,24(r1)
29 + stw r31,28(r1)
31 /* Set up stack frame for child. */
32 clrrwi r4,r4,4
33 @@ -80,7 +83,11 @@
35 L(parent):
36 /* Parent. Restore registers & return. */
37 - lmw r28,16(r1)
38 + lwz r28,16(r1)
39 + lwz r29,20(r1)
40 + lwz r30,24(r1)
41 + lwz r31,28(r1)
43 addi r1,r1,32
44 bnslr+
45 b __syscall_error@local