diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-25 09:28:48 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-25 09:28:48 +0000 |
commit | 20d9950f50dafc490092286776d41d14cfbb93ed (patch) | |
tree | a03140d9b9b51d500849de4deabea673db6454ab /meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff | |
parent | 41d6612ec730f93046aaf1978adb4be77bc257bd (diff) | |
download | openembedded-core-20d9950f50dafc490092286776d41d14cfbb93ed.tar.gz openembedded-core-20d9950f50dafc490092286776d41d14cfbb93ed.tar.bz2 openembedded-core-20d9950f50dafc490092286776d41d14cfbb93ed.tar.xz openembedded-core-20d9950f50dafc490092286776d41d14cfbb93ed.zip |
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
Diffstat (limited to 'meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff')
-rw-r--r-- | meta/packages/elfutils/elfutils-0.131/gcc-4.3_support.diff | 100 |
1 files changed, 100 insertions, 0 deletions
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) + { |