@@ -68,8 +68,6 @@ static uint32_t (*r)(const uint32_t *);
68
68
static uint16_t (* r2 )(const uint16_t * );
69
69
static uint64_t (* r8 )(const uint64_t * );
70
70
static void (* w )(uint32_t , uint32_t * );
71
- static void (* w2 )(uint16_t , uint16_t * );
72
- static void (* w8 )(uint64_t , uint64_t * );
73
71
typedef void (* table_sort_t )(char * , int );
74
72
75
73
/*
@@ -146,31 +144,11 @@ static void wbe(uint32_t val, uint32_t *x)
146
144
put_unaligned_be32 (val , x );
147
145
}
148
146
149
- static void w2be (uint16_t val , uint16_t * x )
150
- {
151
- put_unaligned_be16 (val , x );
152
- }
153
-
154
- static void w8be (uint64_t val , uint64_t * x )
155
- {
156
- put_unaligned_be64 (val , x );
157
- }
158
-
159
147
static void wle (uint32_t val , uint32_t * x )
160
148
{
161
149
put_unaligned_le32 (val , x );
162
150
}
163
151
164
- static void w2le (uint16_t val , uint16_t * x )
165
- {
166
- put_unaligned_le16 (val , x );
167
- }
168
-
169
- static void w8le (uint64_t val , uint64_t * x )
170
- {
171
- put_unaligned_le64 (val , x );
172
- }
173
-
174
152
/*
175
153
* Move reserved section indices SHN_LORESERVE..SHN_HIRESERVE out of
176
154
* the way to -256..-1, to avoid conflicting with real section
@@ -277,16 +255,12 @@ static int do_file(char const *const fname, void *addr)
277
255
r2 = r2le ;
278
256
r8 = r8le ;
279
257
w = wle ;
280
- w2 = w2le ;
281
- w8 = w8le ;
282
258
break ;
283
259
case ELFDATA2MSB :
284
260
r = rbe ;
285
261
r2 = r2be ;
286
262
r8 = r8be ;
287
263
w = wbe ;
288
- w2 = w2be ;
289
- w8 = w8be ;
290
264
break ;
291
265
default :
292
266
fprintf (stderr , "unrecognized ELF data encoding %d: %s\n" ,
0 commit comments