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 22:22:51.450400608 +0200
42 size_t n = len / sizeof (TName); \
46 + word##Bytes##_t *tdest = (word##Bytes##_t *)dest, \
47 + *tptr = (word##Bytes##_t *)ptr; \
50 - *((word##Bytes##_t *) dest)++ = \
51 - LEN##Bytes##_SWAP ((word##Bytes##_t *) ptr); \
52 - ((word##Bytes##_t *) ptr)++; \
53 + *tdest++ = LEN##Bytes##_SWAP (tptr); \
59 word##Bytes##_t *tdest = (word##Bytes##_t *) dest + n; \