diff options
Diffstat (limited to 'libelf')
| -rw-r--r-- | libelf/ChangeLog | 10 | ||||
| -rw-r--r-- | libelf/common.h | 4 | ||||
| -rw-r--r-- | libelf/gnuhash_xlate.h | 6 |
3 files changed, 16 insertions, 4 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 30017cd7..9ca9c734 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -398,6 +398,11 @@ * elf-knowledge.h (SECTION_STRIP_P): Remove < SHT_NUM check. +2011-03-10 Roland McGrath <[email protected]> + + * gnuhash_xlate.h (elf_cvt_gnuhash): Avoid post-increment in bswap_32 + argument, since some implementations are buggy macros. + 2011-02-26 Mark Wielaard <[email protected]> * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini. @@ -1075,6 +1080,11 @@ * elf.h: Update from glibc. +2005-05-31 Roland McGrath <[email protected]> + + * Makefile.am (WEXTRA): New variable, substituted by configure. + (AM_CFLAGS): Use it in place of -Wextra. + 2005-05-08 Roland McGrath <[email protected]> * elf_begin.c (read_file) [_MUDFLAP]: Don't use mmap for now. diff --git a/libelf/common.h b/libelf/common.h index 744f1bb8..185ea595 100644 --- a/libelf/common.h +++ b/libelf/common.h @@ -139,7 +139,7 @@ libelf_release_all (Elf *elf) (Var) = (sizeof (Var) == 1 \ ? (unsigned char) (Var) \ : (sizeof (Var) == 2 \ - ? bswap_16 (Var) \ + ? (unsigned short int) bswap_16 (Var) \ : (sizeof (Var) == 4 \ ? bswap_32 (Var) \ : bswap_64 (Var)))) @@ -148,7 +148,7 @@ libelf_release_all (Elf *elf) (Dst) = (sizeof (Var) == 1 \ ? (unsigned char) (Var) \ : (sizeof (Var) == 2 \ - ? bswap_16 (Var) \ + ? (unsigned short int) bswap_16 (Var) \ : (sizeof (Var) == 4 \ ? bswap_32 (Var) \ : bswap_64 (Var)))) diff --git a/libelf/gnuhash_xlate.h b/libelf/gnuhash_xlate.h index 6faf1136..13266153 100644 --- a/libelf/gnuhash_xlate.h +++ b/libelf/gnuhash_xlate.h @@ -1,5 +1,5 @@ /* Conversion functions for versioning information. - Copyright (C) 2006, 2007 Red Hat, Inc. + Copyright (C) 2006-2011 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2006. @@ -68,7 +68,9 @@ elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode) dest32 = (Elf32_Word *) &dest64[bitmask_words]; while (len >= 4) { - *dest32++ = bswap_32 (*src32++); + *dest32 = bswap_32 (*src32); + ++dest32; + ++src32; len -= 4; } } |
