surpport seeking the recorded video
[vuplus_openembedded] / recipes / glibc / glibc-2.3.2 / glibc23-hppa-compat.patch
1 --- glibc-2.3.1/sysdeps/hppa/Makefile.orig      2003-02-25 22:21:14.000000000 -0800
2 +++ glibc-2.3.1/sysdeps/hppa/Makefile   2003-02-25 22:22:01.000000000 -0800
3 @@ -31,3 +31,14 @@
4  dl-routines += dl-symaddr dl-fptr
5  rtld-routines += dl-symaddr dl-fptr
6  endif
7 +
8 +ifeq ($(subdir),csu)
9 +ifeq (yes,$(build-shared))
10 +# Compatibility
11 +ifeq (yes,$(have-protected))
12 +CPPFLAGS-libgcc-compat.c = -DHAVE_DOT_HIDDEN
13 +endif
14 +sysdep_routines += libgcc-compat
15 +shared-only-routines += libgcc-compat
16 +endif
17 +endif
18 --- glibc/sysdeps/hppa/libgcc-compat.c  2003-02-25 22:19:14.000000000 -0800
19 +++ glibc/sysdeps/hppa/libgcc-compat.c  2003-02-25 22:19:14.000000000 -0800
20 @@ -0,0 +1,43 @@
21 +/* pre-.hidden libgcc compatibility
22 +   Copyright (C) 2002 Free Software Foundation, Inc.
23 +   This file is part of the GNU C Library.
24 +   Contributed by Randolph Chung
25 +
26 +   The GNU C Library is free software; you can redistribute it and/or
27 +   modify it under the terms of the GNU Lesser General Public
28 +   License as published by the Free Software Foundation; either
29 +   version 2.1 of the License, or (at your option) any later version.
30 +
31 +   The GNU C Library is distributed in the hope that it will be useful,
32 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
33 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
34 +   Lesser General Public License for more details.
35 +
36 +   You should have received a copy of the GNU Lesser General Public
37 +   License along with the GNU C Library; if not, write to the Free
38 +   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
39 +   02111-1307 USA.  */
40 +
41 +
42 +#include <stdint.h>
43 +#include <shlib-compat.h>
44 +
45 +#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2_6)
46 +
47 +symbol_version (__clz_tab_internal, __clz_tab, GLIBC_2.2);
48 +
49 +typedef unsigned int UQItype  __attribute__ ((mode (QI)));
50 +
51 +const UQItype __clz_tab_internal[] =
52 +{
53 +  0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
54 +  6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
55 +  7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
56 +  7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
57 +  8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
58 +  8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
59 +  8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
60 +  8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
61 +};
62 +
63 +#endif
64 --- glibc-2.3.1/sysdeps/hppa/Dist.orig  2003-02-26 09:02:52.000000000 -0800
65 +++ glibc-2.3.1/sysdeps/hppa/Dist       2003-02-26 09:04:03.000000000 -0800
66 @@ -1,2 +1,3 @@
67 +libgcc-compat.c
68  dl-symaddr.c
69  dl-fptr.c
70 --- glibc-2.3.1/sysdeps/hppa/Versions.orig      2002-02-01 13:16:41.000000000 -0800
71 +++ glibc-2.3.1/sysdeps/hppa/Versions   2003-02-27 13:23:03.000000000 -0800
72 @@ -5,3 +5,8 @@
73      _dl_function_address;
74    }
75  }
76 +libc {
77 +  GLIBC_2.2 {
78 +    __clz_tab;
79 +  }
80 +}