patches/glibc/2.3.2/nobits.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 Fix build on architectures (like arm) where gas accepts @ as comment.
     2 
     3 First reported here:
     4 http://sources.redhat.com/ml/libc-alpha/2003-04/msg00265.html
     5 
     6 In use here:
     7 http://www.netwinder.org/autobuild/nw-9/patches/glibc-2.3.2-nobits.patch
     8 
     9 Committed to cvs:
    10 http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/include/libc-symbols.h.diff?r1=1.52&r2=1.53&cvsroot=glibc
    11 
    12 ===================================================================
    13 RCS file: /cvs/glibc/libc/include/libc-symbols.h,v
    14 retrieving revision 1.52
    15 retrieving revision 1.53
    16 diff -u -r1.52 -r1.53
    17 --- libc/include/libc-symbols.h	2003/04/30 04:18:03	1.52
    18 +++ libc/include/libc-symbols.h	2003/05/02 02:20:48	1.53
    19 @@ -247,7 +247,7 @@
    20      __attribute__ ((unused, section (".gnu.warning." #symbol __sec_comment))) \
    21      = msg;
    22  #  define libc_freeres_ptr(decl) \
    23 -  __make_section_unallocated ("__libc_freeres_ptrs, \"aw\", @nobits") \
    24 +  __make_section_unallocated ("__libc_freeres_ptrs, \"aw\", %nobits") \
    25    decl __attribute__ ((section ("__libc_freeres_ptrs" __sec_comment)))
    26  #  define __libc_freeres_fn_section \
    27    __attribute__ ((section ("__libc_freeres_fn")))