]> git.pld-linux.org Git - packages/elfutils.git/commitdiff
- stage 2...
authorPaweł Sikora <pluto@pld-linux.org>
Thu, 1 Apr 2004 16:15:09 +0000 (16:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elfutils-gcc34.patch -> 1.2

elfutils-gcc34.patch

index 19a605105627c1298e993a584470717fea0ca1b6..0a01f53ec59a6505c80ff5407d7ab16c4411ecf5 100644 (file)
                      hi = hash & 0xf0000000;
  
                      /* The algorithm specified in the ELF ABI is as
+--- elfutils-0.94/libelf/gelf_xlate.c.orig     2003-12-25 19:42:38.000000000 +0100
++++ elfutils-0.94/libelf/gelf_xlate.c  2004-04-01 18:13:11.864643784 +0200
+@@ -67,25 +67,18 @@
+ #define INLINE2(Bytes, FName, TName) \
+   INLINE3 (Bytes, FName, TName)
+ #define INLINE3(Bytes, FName, TName) \
+-  static void FName (void *dest, const void *ptr, size_t len, int encode)     \
++  static void FName (word##Bytes##_t *dest, const word##Bytes##_t *ptr, size_t len, int encode)     \
+   {                                                                         \
+     size_t n = len / sizeof (TName);                                        \
+     if (dest < ptr)                                                         \
+       while (n-- > 0)                                                       \
+-      {                                                                     \
+-          *((word##Bytes##_t *) dest)++ =                                   \
+-          LEN##Bytes##_SWAP ((word##Bytes##_t *) ptr);                      \
+-        ((word##Bytes##_t *) ptr)++;                                        \
+-      }                                                                     \
++          *dest++ = LEN##Bytes##_SWAP(ptr++);                               \
+     else                                                                    \
+       {                                                                             \
+-      word##Bytes##_t *tdest = (word##Bytes##_t *) dest + n;                \
+-      const word##Bytes##_t *tptr = (const word##Bytes##_t *) ptr + n;      \
++      word##Bytes##_t *tdest = dest + n;                                    \
++      const word##Bytes##_t *tptr = ptr + n;                                \
+       while (n-- > 0)                                                       \
+-        {                                                                   \
+-          --tptr;                                                           \
+-          *--tdest = LEN##Bytes##_SWAP (tptr);                              \
+-        }                                                                   \
++          *--tdest = LEN##Bytes##_SWAP(--tptr);                             \
+       }                                                                             \
+  }                                                                          \
+                                                                             \
This page took 0.230557 seconds and 4 git commands to generate.