patches/glibc/2.3.4/glibc-2.3.4-memcmp.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.
yann@1
     1
Fixes
yann@1
     2
    ../sysdeps/i386/i686/memcmp.S: Assembler messages:
yann@1
     3
    ../sysdeps/i386/i686/memcmp.S:390: Error: can't resolve  `.rodata' {.rodata section} - `memcmp' {.text section}
yann@1
     4
when building on macosx.
yann@1
     5
yann@1
     6
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/i386/i686/memcmp.S?cvsroot=glibc
yann@1
     7
Revision 1.4, Thu Apr 28 18:19:25 2005 UTC by drepper
yann@1
     8
Branch: MAIN
yann@1
     9
CVS Tags: fedora-glibc-20050503T0852
yann@1
    10
Changes since 1.3: +2 -2 lines
yann@1
    11
Diff to previous 1.3 (colored)
yann@1
    12
yann@1
    13
Move misplaced END.
yann@1
    14
yann@1
    15
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/i386/i686/memcmp.S.diff?r1=1.3&r2=1.4&cvsroot=glibc
yann@1
    16
yann@1
    17
===================================================================
yann@1
    18
RCS file: /cvs/glibc/libc/sysdeps/i386/i686/memcmp.S,v
yann@1
    19
retrieving revision 1.3
yann@1
    20
retrieving revision 1.4
yann@1
    21
diff -u -r1.3 -r1.4
yann@1
    22
--- libc/sysdeps/i386/i686/memcmp.S	2004/04/01 23:28:37	1.3
yann@1
    23
+++ libc/sysdeps/i386/i686/memcmp.S	2005/04/28 18:19:25	1.4
yann@1
    24
@@ -1,5 +1,5 @@
yann@1
    25
 /* Compare two memory blocks for differences in the first COUNT bytes.
yann@1
    26
-   Copyright (C) 2004 Free Software Foundation, Inc.
yann@1
    27
+   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
yann@1
    28
    This file is part of the GNU C Library.
yann@1
    29
 
yann@1
    30
    The GNU C Library is free software; you can redistribute it and/or
yann@1
    31
@@ -350,6 +350,7 @@
yann@1
    32
 	sbbl	$-1, %eax
yann@1
    33
 	popl	%esi
yann@1
    34
 	RETURN
yann@1
    35
+END (BP_SYM (memcmp))
yann@1
    36
 
yann@1
    37
 	.section	.rodata
yann@1
    38
 	ALIGN (2)
yann@1
    39
@@ -387,7 +388,6 @@
yann@1
    40
 	.long	L(30bytes) - . + 0x78
yann@1
    41
 	.long	L(31bytes) - . + 0x7c
yann@1
    42
 
yann@1
    43
-END (BP_SYM (memcmp))
yann@1
    44
 
yann@1
    45
 #undef bcmp
yann@1
    46
 weak_alias (BP_SYM (memcmp), BP_SYM (bcmp))