1 --- elfutils-0.94/libelf/dl-hash.h.orig 2003-12-25 19:31:59.000000000 +0100
2 +++ elfutils-0.94/libelf/dl-hash.h 2004-04-01 17:29:43.935109336 +0200
4 __attribute__ ((__pure__))
5 _dl_elf_hash (const char *name)
7 - unsigned int hash = (unsigned int) *((const unsigned char *) name)++;
8 + unsigned int hash = (unsigned int) *(const unsigned char *)name++;
12 - + (unsigned int) *((const unsigned char *) name)++);
13 + + (unsigned int) *(const unsigned char *)name++);
17 - + (unsigned int) *((const unsigned char *) name)++);
18 + + (unsigned int) *(const unsigned char *)name++);
22 - + (unsigned int) *((const unsigned char *) name)++);
23 + + (unsigned int) *(const unsigned char *)name++);
27 - + (unsigned int) *((const unsigned char *) name)++);
28 + + (unsigned int) *(const unsigned char *)name++);
33 - + (unsigned int) *((const unsigned char *) name)++);
34 + + (unsigned int) *(const unsigned char *)name++);
35 hi = hash & 0xf0000000;
37 /* The algorithm specified in the ELF ABI is as
38 --- elfutils-0.94/libelf/gelf_xlate.c.orig 2003-12-25 19:42:38.000000000 +0100
39 +++ elfutils-0.94/libelf/gelf_xlate.c 2004-04-01 18:13:11.864643784 +0200
41 #define INLINE2(Bytes, FName, TName) \
42 INLINE3 (Bytes, FName, TName)
43 #define INLINE3(Bytes, FName, TName) \
44 - static void FName (void *dest, const void *ptr, size_t len, int encode) \
45 + static void FName (word##Bytes##_t *dest, const word##Bytes##_t *ptr, size_t len, int encode) \
47 size_t n = len / sizeof (TName); \
51 - *((word##Bytes##_t *) dest)++ = \
52 - LEN##Bytes##_SWAP ((word##Bytes##_t *) ptr); \
53 - ((word##Bytes##_t *) ptr)++; \
55 + *dest++ = LEN##Bytes##_SWAP(ptr++); \
58 - word##Bytes##_t *tdest = (word##Bytes##_t *) dest + n; \
59 - const word##Bytes##_t *tptr = (const word##Bytes##_t *) ptr + n; \
60 + word##Bytes##_t *tdest = dest + n; \
61 + const word##Bytes##_t *tptr = ptr + n; \
65 - *--tdest = LEN##Bytes##_SWAP (tptr); \
67 + *--tdest = LEN##Bytes##_SWAP(--tptr); \