aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-hash-collision2-mod2.c
blob: 98280218334816e0544ee20019d8e5161ad9dba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/* Test ELF hash collisions: shared object 2.
   Copyright (C) 2024-2025 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <https://www.gnu.org/licenses/>.  */

#include <support/check.h>

/* Names with hash collisions for classic ELF hash.  */

int
HxxxynpHxxxynpHxxxynpfoo (void)
{
  return 4;
}

int
HxxxynpHxxxynpHxxxynpHxxxynpfoo (void)
{
  return 5;
}


/* Names with hash collisions for GNU hash.  */

int
gliinmgliinmgliinmbar (void)
{
  return 7;
}

int
gliinmgliinmgliinmgliinmbar (void)
{
  return 6;
}


/* Names with specific hash values for each hash (see
   tst-hash-collision1.c for details).  */

int
HxxyipP (void)
{
  return 14;
}

int
HxxykNp (void)
{
  return 15;
}

int
HxxxzaA (void)
{
  return 19;
}

int
Hxxxz_a (void)
{
  return 20;
}

int
HxxxzaB (void)
{
  return 24;
}

int
Hxxxz_b (void)
{
  return 25;
}

int
gliePJ (void)
{
  return 29;
}

int
gljCpk (void)
{
  return 30;
}

int
gliePK (void)
{
  return 34;
}

int
gljCpl (void)
{
  return 35;
}

int
gliePL (void)
{
  return 39;
}

int
gljCpm (void)
{
  return 40;
}

int
Adfn9ru (void)
{
  return 44;
}

int
Adfn9sT (void)
{
  return 45;
}

int
Adfn9rv (void)
{
  return 49;
}

int
Adfn9sU (void)
{
  return 50;
}

int
Adfn9rw (void)
{
  return 54;
}

int
Adfn9sV (void)
{
  return 55;
}

int
Adfn9rx (void)
{
  return 59;
}

int
Adfn9sW (void)
{
  return 60;
}

int
gliePH (void)
{
  return 64;
}

int
gljCpi (void)
{
  return 65;
}

int
gliePI (void)
{
  return 69;
}

int
gljCpj (void)
{
  return 70;
}