Index: libc/arch/ppc32/Makefile.inc
===================================================================
--- libc/arch/ppc32/Makefile.inc	(revision 47378c461242497f441d7f1dc49933b9542c414a)
+++ libc/arch/ppc32/Makefile.inc	(revision a2cd19407aeaebd9dfe9f73276a585bee5a22adc)
@@ -37,4 +37,5 @@
 		arch/$(ARCH)/src/thread.c
 
-CFLAGS += -msoft-float
+CFLAGS += -mcpu=powerpc -msoft-float -m32
+AFLAGS += -a32
 LFLAGS += -N
Index: libc/arch/ppc32/include/endian.h
===================================================================
--- libc/arch/ppc32/include/endian.h	(revision 47378c461242497f441d7f1dc49933b9542c414a)
+++ libc/arch/ppc32/include/endian.h	(revision a2cd19407aeaebd9dfe9f73276a585bee5a22adc)
@@ -37,4 +37,2 @@
 
 #endif
-
-
Index: libc/arch/ppc32/include/limits.h
===================================================================
--- libc/arch/ppc32/include/limits.h	(revision 47378c461242497f441d7f1dc49933b9542c414a)
+++ libc/arch/ppc32/include/limits.h	(revision a2cd19407aeaebd9dfe9f73276a585bee5a22adc)
@@ -30,10 +30,8 @@
 #define __ppc32__LIMITS_H__
 
-# define LONG_MIN MIN_INT32
-# define LONG_MAX MAX_INT32
-# define ULONG_MIN MIN_UINT32
-# define ULONG_MAX MAX_UINT32
+#define LONG_MIN MIN_INT32
+#define LONG_MAX MAX_INT32
+#define ULONG_MIN MIN_UINT32
+#define ULONG_MAX MAX_UINT32
 
 #endif
-
-
Index: libc/arch/ppc32/include/thread.h
===================================================================
--- libc/arch/ppc32/include/thread.h	(revision 47378c461242497f441d7f1dc49933b9542c414a)
+++ libc/arch/ppc32/include/thread.h	(revision a2cd19407aeaebd9dfe9f73276a585bee5a22adc)
@@ -30,16 +30,4 @@
 #define __LIBC__ppc32__THREAD_H__
 
-/* I did not find any specification (neither MIPS nor PowerPC), but
- * as I found it
- * - it uses Variant II
- * - TCB is at Address(First TLS Block)+0x7000.
- * - DTV is at Address(First TLS Block)+0x8000
- * - What would happen if the TLS data was larger then 0x7000?
- * - The linker never accesses DTV directly, has the second definition any
- *   sense?
- * We will make it this way:
- * - TCB is at TP-0x7000-sizeof(tcb)
- * - No assumption about DTV etc., but it will not have a fixed address
- */
 #define PPC_TP_OFFSET 0x7000
 
