patches/glibc/2.2.5/glibc-2.2.5-powerpc-as.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
     1 Based on glibc-2.3.2/glibc-2.3.2-powerpc-as.patch
     2 
     3 Fixes the following errors when building glibc for ppc7450:
     4 
     5 /tmp/ccwlHdbl.s: Assembler messages:
     6 /tmp/ccwlHdbl.s:73: Error: Unrecognized opcode: `stvx'
     7 /tmp/ccwlHdbl.s:74: Error: Unrecognized opcode: `mfvrsave'
     8 /tmp/ccwlHdbl.s:300: Error: Unrecognized opcode: `lvx'
     9 /tmp/ccwlHdbl.s:302: Error: Unrecognized opcode: `mtvrsave'
    10 make[2]: *** [/usr/local/src/crosstool-0.28-rc34/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/libio/iopopen.o] Error 1
    11 make[2]: Leaving directory `/home/local/src/crosstool-0.28-rc34/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.2.5/glibc-2.2.5/libio'
    12 make[1]: *** [libio/subdir_lib] Error 2
    13 make[1]: Leaving directory `/home/local/src/crosstool-0.28-rc34/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.2.5/glibc-2.2.5'
    14 make: *** [all] Error 2
    15 
    16 Contributed by Tom Warzeka <waz@quahog.npt.nuwc.navy.mil>
    17 
    18 ===================================================================
    19 --- glibc-2.2.5/sysdeps/powerpc/Makefile~	2004-08-31 14:59:15.000000000 -0400
    20 +++ glibc-2.2.5/sysdeps/powerpc/Makefile	2004-09-02 19:47:21.000000000 -0400
    21 @@ -1,7 +1,6 @@
    22  # We always want to use the new mnemonic syntax even if we are on a RS6000
    23  # machine.
    24 -+cflags += -mnew-mnemonics -Wa,-mppc -mpowerpc
    25 -asm-CPPFLAGS += -Wa,-mppc
    26 ++cflags += -mnew-mnemonics
    27  
    28  ifeq ($(subdir),gmon)
    29  sysdep_routines += ppc-mcount