1 ports/sysdeps/alpha/dl-machine.h | 12 ++++++
2 ports/sysdeps/alpha/dl-procinfo.c | 64 +++++++++++++++++++++++++++++++++++
3 ports/sysdeps/alpha/dl-procinfo.h | 68 ++++++++++++++++++++++++++++++++++++++
4 3 files changed, 144 insertions(+)
6 diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/alpha/dl-machine.h glibc-2.10.1/glibc-ports-2.10.1/sysdeps/alpha/dl-machine.h
7 --- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/alpha/dl-machine.h 2009-05-16 10:36:20.000000000 +0200
8 +++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/alpha/dl-machine.h 2009-11-13 00:51:02.000000000 +0100
10 /* The alpha never uses Elf64_Rel relocations. */
11 #define ELF_MACHINE_NO_REL 1
13 +/* We define an initialization functions. This is called very early in
14 + * _dl_sysdep_start. */
15 +#define DL_PLATFORM_INIT dl_platform_init ()
17 +static inline void __attribute__ ((unused))
18 +dl_platform_init (void)
20 + if (GLRO(dl_platform) != NULL && *GLRO(dl_platform) == '\0')
21 + /* Avoid an empty string which would disturb us. */
22 + GLRO(dl_platform) = NULL;
25 /* Fix up the instructions of a PLT entry to invoke the function
26 rather than the dynamic linker. */
27 static inline Elf64_Addr
28 diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.c glibc-2.10.1/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.c
29 --- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.c 1970-01-01 01:00:00.000000000 +0100
30 +++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.c 2009-11-13 00:51:02.000000000 +0100
32 +/* Data for Alpha version of processor capability information.
33 + Copyright (C) 2007 Free Software Foundation, Inc.
34 + This file is part of the GNU C Library.
35 + Contributed by Aurelien Jarno <aurelien@aurel32.net>, 2007.
37 + The GNU C Library is free software; you can redistribute it and/or
38 + modify it under the terms of the GNU Lesser General Public
39 + License as published by the Free Software Foundation; either
40 + version 2.1 of the License, or (at your option) any later version.
42 + The GNU C Library is distributed in the hope that it will be useful,
43 + but WITHOUT ANY WARRANTY; without even the implied warranty of
44 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
45 + Lesser General Public License for more details.
47 + You should have received a copy of the GNU Lesser General Public
48 + License along with the GNU C Library; if not, write to the Free
49 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
52 +/* This information must be kept in sync with the _DL_PLATFORM_COUNT
53 + definitions in procinfo.h.
55 + If anything should be added here check whether the size of each string
56 + is still ok with the given array size.
58 + All the #ifdefs in the definitions are quite irritating but
59 + necessary if we want to avoid duplicating the information. There
60 + are three different modes:
62 + - PROCINFO_DECL is defined. This means we are only interested in
65 + - PROCINFO_DECL is not defined:
67 + + if SHARED is defined the file is included in an array
68 + initializer. The .element = { ... } syntax is needed.
70 + + if SHARED is not defined a normal array initialization is
74 +#ifndef PROCINFO_CLASS
75 +#define PROCINFO_CLASS
78 +#if !defined PROCINFO_DECL && defined SHARED
79 + ._dl_alpha_platforms
81 +PROCINFO_CLASS const char _dl_alpha_platforms[5][5]
83 +#ifndef PROCINFO_DECL
85 + "ev4", "ev5", "ev56", "ev6", "ev67"
88 +#if !defined SHARED || defined PROCINFO_DECL
95 +#undef PROCINFO_CLASS
96 diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.h glibc-2.10.1/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.h
97 --- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.h 1970-01-01 01:00:00.000000000 +0100
98 +++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/alpha/dl-procinfo.h 2009-11-13 00:51:02.000000000 +0100
100 +/* Alpha version of processor capability information handling macros.
101 + Copyright (C) 2007 Free Software Foundation, Inc.
102 + This file is part of the GNU C Library.
103 + Contributed by Aurelien Jarno <aurelien@aurel32.net>, 2007.
105 + The GNU C Library is free software; you can redistribute it and/or
106 + modify it under the terms of the GNU Lesser General Public
107 + License as published by the Free Software Foundation; either
108 + version 2.1 of the License, or (at your option) any later version.
110 + The GNU C Library is distributed in the hope that it will be useful,
111 + but WITHOUT ANY WARRANTY; without even the implied warranty of
112 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
113 + Lesser General Public License for more details.
115 + You should have received a copy of the GNU Lesser General Public
116 + License along with the GNU C Library; if not, write to the Free
117 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
120 +#ifndef _DL_PROCINFO_H
121 +#define _DL_PROCINFO_H 1
123 +#include <ldsodefs.h>
126 +/* Mask to filter out platforms. */
127 +#define _DL_HWCAP_PLATFORM (-1ULL)
129 +#define _DL_PLATFORMS_COUNT 5
131 +static inline const char *
132 +__attribute__ ((unused))
133 +_dl_platform_string (int idx)
135 + return GLRO(dl_alpha_platforms)[idx];
139 +__attribute__ ((unused, always_inline))
140 +_dl_string_platform (const char *str)
145 + for (i = 0; i < _DL_PLATFORMS_COUNT; ++i)
147 + if (strcmp (str, _dl_platform_string (i)) == 0)
153 +/* We cannot provide a general printing function. */
154 +#define _dl_procinfo(word) -1
156 +/* There are no hardware capabilities defined. */
157 +#define _dl_hwcap_string(idx) ""
159 +/* By default there is no important hardware capability. */
160 +#define HWCAP_IMPORTANT (0)
162 +/* We don't have any hardware capabilities. */
163 +#define _DL_HWCAP_COUNT 0
165 +#define _dl_string_hwcap(str) (-1)
167 +#endif /* dl-procinfo.h */
168 diff -durN glibc-2.10.1.orig/ports/sysdeps/alpha/dl-machine.h glibc-2.10.1/ports/sysdeps/alpha/dl-machine.h
169 diff -durN glibc-2.10.1.orig/ports/sysdeps/alpha/dl-procinfo.c glibc-2.10.1/ports/sysdeps/alpha/dl-procinfo.c
170 diff -durN glibc-2.10.1.orig/ports/sysdeps/alpha/dl-procinfo.h glibc-2.10.1/ports/sysdeps/alpha/dl-procinfo.h