From 20d9950f50dafc490092286776d41d14cfbb93ed Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 25 Jul 2008 09:28:48 +0000 Subject: elfutils: added 0.131 with Debian patches to build with gcc 4.3.1 git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4949 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- .../elfutils/elfutils-0.131/gcc-4.3_support.diff | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff (limited to 'meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff') diff --git a/meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff b/meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff new file mode 100644 index 000000000..b337da9b6 --- /dev/null +++ b/meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff @@ -0,0 +1,100 @@ +Index: elfutils-0.131/libelf/common.h +=================================================================== +--- elfutils-0.131.orig/libelf/common.h 2008-04-02 13:32:19.000000000 -0300 ++++ elfutils-0.131/libelf/common.h 2008-04-02 13:35:53.000000000 -0300 +@@ -110,45 +110,6 @@ + } + + +-/* Acquire lock for the descriptor and all children. */ +-static void +-libelf_acquire_all (Elf *elf) +-{ +- rwlock_wrlock (elf->lock); +- +- if (elf->kind == ELF_K_AR) +- { +- Elf *child = elf->state.ar.children; +- +- while (child != NULL) +- { +- if (child->ref_count != 0) +- libelf_acquire_all (child); +- child = child->next; +- } +- } +-} +- +-/* Release own lock and those of the children. */ +-static void +-libelf_release_all (Elf *elf) +-{ +- if (elf->kind == ELF_K_AR) +- { +- Elf *child = elf->state.ar.children; +- +- while (child != NULL) +- { +- if (child->ref_count != 0) +- libelf_release_all (child); +- child = child->next; +- } +- } +- +- rwlock_unlock (elf->lock); +-} +- +- + /* Macro to convert endianess in place. It determines the function it + has to use itself. */ + #define CONVERT(Var) \ +Index: elfutils-0.131/libelf/elf_readall.c +=================================================================== +--- elfutils-0.131.orig/libelf/elf_readall.c 2008-04-02 13:36:06.000000000 -0300 ++++ elfutils-0.131/libelf/elf_readall.c 2008-04-02 13:38:25.000000000 -0300 +@@ -60,6 +60,45 @@ + #include "common.h" + + ++/* Acquire lock for the descriptor and all children. */ ++static void ++libelf_acquire_all (Elf *elf) ++{ ++ rwlock_wrlock (elf->lock); ++ ++ if (elf->kind == ELF_K_AR) ++ { ++ Elf *child = elf->state.ar.children; ++ ++ while (child != NULL) ++ { ++ if (child->ref_count != 0) ++ libelf_acquire_all (child); ++ child = child->next; ++ } ++ } ++} ++ ++/* Release own lock and those of the children. */ ++static void ++libelf_release_all (Elf *elf) ++{ ++ if (elf->kind == ELF_K_AR) ++ { ++ Elf *child = elf->state.ar.children; ++ ++ while (child != NULL) ++ { ++ if (child->ref_count != 0) ++ libelf_release_all (child); ++ child = child->next; ++ } ++ } ++ ++ rwlock_unlock (elf->lock); ++} ++ ++ + static void + set_address (Elf *elf, size_t offset) + { -- cgit v1.2.3