elfutils: upgrade to 0.158
cover elfutils: upgrade to 0.158
Build Steps:
1. Add 'PREFERRED_VERSION_elfutils="0.158"' to local.conf
2. bitbake elfutils
//Hongxu
The following changes since commit 894df445fa71a170397c6e0b4960a89ef20a4230:
guile: Update to 2.0.11 version (2014-05-21 19:50:21 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/upgrade-elfutils
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/upgrade-elfutils
Hongxu Jia (3):
elfutils: remove 0.155
elfutils: upgrade to 0.158
elfutils: backport from debian
.../elfutils/elfutils-0.155/dso-link-change.patch | 32 -
.../elfutils/elfutils-0.155/elf_additions.diff | 61 -
.../elfutils-ar-c-fix-num-passed-to-memset.patch | 23 -
.../elfutils/elfutils-0.155/i386_dis.h | 1657 --------------------
.../elfutils/elfutils-0.155/mempcpy.patch | 24 -
...ssed-to-snprintf-for-invalid-sh_name-case.patch | 27 -
.../elfutils/elfutils-0.155/uclibc-support.patch | 91 --
.../elfutils/elfutils-0.155/x86_64_dis.h | 1632 -------------------
.../elfutils/elfutils-0.158/CVE-2014-0172.patch | 35 +
.../arm_backend.diff | 433 +++--
.../elfutils/elfutils-0.158/core_filename.patch | 27 +
.../hppa_backend.diff | 77 +-
.../m68k_backend.diff | 250 ++-
.../mips_backend.diff | 72 +-
.../elfutils/elfutils-0.158/mips_readelf_w.patch | 22 +
.../redhat-portability.diff | 953 +++++++----
.../redhat-robustify.diff | 326 ++--
.../elfutils/elfutils-0.158/scanf-format.patch | 40 +
.../elfutils-0.158/testsuite-ignore-elflint.diff | 39 +
.../elfutils/elfutils-0.158/unwind_non_linux.patch | 256 +++
.../{elfutils_0.155.bb => elfutils_0.158.bb} | 24 +-
21 files changed, 1758 insertions(+), 4343 deletions(-)
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/dso-link-change.patch
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/elf_additions.diff
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/elfutils-ar-c-fix-num-passed-to-memset.patch
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/i386_dis.h
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/mempcpy.patch
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/uclibc-support.patch
delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/x86_64_dis.h
create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/CVE-2014-0172.patch
rename meta/recipes-devtools/elfutils/{elfutils-0.155 => elfutils-0.158}/arm_backend.diff (44%)
create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/core_filename.patch
rename meta/recipes-devtools/elfutils/{elfutils-0.155 => elfutils-0.158}/hppa_backend.diff (92%)
rename meta/recipes-devtools/elfutils/{elfutils-0.155 => elfutils-0.158}/m68k_backend.diff (51%)
rename meta/recipes-devtools/elfutils/{elfutils-0.155 => elfutils-0.158}/mips_backend.diff (91%)
create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch
rename meta/recipes-devtools/elfutils/{elfutils-0.155 => elfutils-0.158}/redhat-portability.diff (66%)
rename meta/recipes-devtools/elfutils/{elfutils-0.155 => elfutils-0.158}/redhat-robustify.diff (81%)
create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/scanf-format.patch
create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/testsuite-ignore-elflint.diff
create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/unwind_non_linux.patch
rename meta/recipes-devtools/elfutils/{elfutils_0.155.bb => elfutils_0.158.bb} (82%)Signature · 1 line
1.8.1.2
PATCH 1/3 elfutils: remove 0.155
--- .../elfutils/elfutils-0.155/arm_backend.diff | 450 ----- .../elfutils/elfutils-0.155/dso-link-change.patch | 32 - .../elfutils/elfutils-0.155/elf_additions.diff | 61 - .../elfutils-ar-c-fix-num-passed-to-memset.patch | 23 - .../elfutils/elfutils-0.155/hppa_backend.diff | 801 --------- .../elfutils/elfutils-0.155/i386_dis.h | 1657 ------------------ .../elfutils/elfutils-0.155/m68k_backend.diff | 309 ---- .../elfutils/elfutils-0.155/mempcpy.patch | 24 - .../elfutils/elfutils-0.155/mips_backend.diff | 714 -------- ...ssed-to-snprintf-for-invalid-sh_name-case.patch | 27 - .../elfutils-0.155/redhat-portability.diff | 1547 ----------------- .../elfutils/elfutils-0.155/redhat-robustify.diff | 1824 -------------------- .../elfutils/elfutils-0.155/uclibc-support.patch | 91 - .../elfutils/elfutils-0.155/x86_64_dis.h | 1632 ------------------ 14 files changed, 9192 deletions(-) delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/arm_backend.diff delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/dso-link-change.patch delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/elf_additions.diff delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/elfutils-ar-c-fix-num-passed-to-memset.patch delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/hppa_backend.diff delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/i386_dis.h delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/m68k_backend.diff delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/mempcpy.patch delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/mips_backend.diff delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/redhat-portability.diff delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/redhat-robustify.diff delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/uclibc-support.patch delete mode 100644 meta/recipes-devtools/elfutils/elfutils-0.155/x86_64_dis.h
meta/recipes-devtools/elfutils/elfutils-0.155/arm_backend.diff deleted +0 -450
@@ -1,450 +0,0 @@ -Upstream-Status: Backport - -Index: elfutils-0.155/backends/arm_init.c -=================================================================== ---- elfutils-0.155.orig/backends/arm_init.c -+++ elfutils-0.155/backends/arm_init.c -@@ -35,21 +35,32 @@ - #define RELOC_PREFIX R_ARM_ - #include "libebl_CPU.h" - -+#include "libebl_arm.h" -+ - /* This defines the common reloc hooks based on arm_reloc.def. */ - #include "common-reloc.c" - - - const char * - arm_init (elf, machine, eh, ehlen) -- Elf *elf __attribute__ ((unused)); -+ Elf *elf; - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; - { -+ int soft_float = 0; -+ - /* Check whether the Elf_BH object has a sufficent size. */ - if (ehlen < sizeof (Ebl)) - return NULL; - -+ if (elf) { -+ GElf_Ehdr ehdr_mem; -+ GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); -+ if (ehdr && (ehdr->e_flags & EF_ARM_SOFT_FLOAT)) -+ soft_float = 1; -+ } -+ - /* We handle it. */ - eh->name = "ARM"; - arm_init_reloc (eh); -@@ -61,7 +72,10 @@ arm_init (elf, machine, eh, ehlen) - HOOK (eh, core_note); - HOOK (eh, auxv_info); - HOOK (eh, check_object_attribute); -- HOOK (eh, return_value_location); -+ if (soft_float) -+ eh->return_value_location = arm_return_value_location_soft; -+ else -+ eh->return_value_location = arm_return_value_location_hard; - - return MODVERSION; - } -Index: elfutils-0.155/backends/arm_regs.c -=================================================================== ---- elfutils-0.155.orig/backends/arm_regs.c -+++ elfutils-0.155/backends/arm_regs.c -@@ -31,6 +31,7 @@ - #endif - - #include <string.h> -+#include <stdio.h> - #include <dwarf.h> - - #define BACKEND arm_ -@@ -61,7 +62,15 @@ arm_register_info (Ebl *ebl __attribute_ - namelen = 2; - break; - -- case 10 ... 12: -+ case 10 ... 11: -+ name[0] = 'r'; -+ name[1] = '1'; -+ name[2] = regno % 10 + '0'; -+ namelen = 3; -+ break; -+ -+ case 12: -+ *type = DW_ATE_unsigned; - name[0] = 'r'; - name[1] = '1'; - name[2] = regno % 10 + '0'; -@@ -76,6 +85,9 @@ arm_register_info (Ebl *ebl __attribute_ - break; - - case 16 + 0 ... 16 + 7: -+ /* AADWARF says that there are no registers in that range, -+ * but gcc maps FPA registers here -+ */ - regno += 96 - 16; - /* Fall through. */ - case 96 + 0 ... 96 + 7: -@@ -87,11 +99,139 @@ arm_register_info (Ebl *ebl __attribute_ - namelen = 2; - break; - -+ case 64 + 0 ... 64 + 9: -+ *setname = "VFP"; -+ *bits = 32; -+ *type = DW_ATE_float; -+ name[0] = 's'; -+ name[1] = regno - 64 + '0'; -+ namelen = 2; -+ break; -+ -+ case 64 + 10 ... 64 + 31: -+ *setname = "VFP"; -+ *bits = 32; -+ *type = DW_ATE_float; -+ name[0] = 's'; -+ name[1] = (regno - 64) / 10 + '0'; -+ name[2] = (regno - 64) % 10 + '0'; -+ namelen = 3; -+ break; -+ -+ case 104 + 0 ... 104 + 7: -+ /* XXX TODO: -+ * This can be either intel wireless MMX general purpose/control -+ * registers or xscale accumulator, which have different usage. -+ * We only have the intel wireless MMX here now. -+ * The name needs to be changed for the xscale accumulator too. */ -+ *setname = "MMX"; -+ *type = DW_ATE_unsigned; -+ *bits = 32; -+ memcpy(name, "wcgr", 4); -+ name[4] = regno - 104 + '0'; -+ namelen = 5; -+ break; -+ -+ case 112 + 0 ... 112 + 9: -+ *setname = "MMX"; -+ *type = DW_ATE_unsigned; -+ *bits = 64; -+ name[0] = 'w'; -+ name[1] = 'r'; -+ name[2] = regno - 112 + '0'; -+ namelen = 3; -+ break; -+ -+ case 112 + 10 ... 112 + 15: -+ *setname = "MMX"; -+ *type = DW_ATE_unsigned; -+ *bits = 64; -+ name[0] = 'w'; -+ name[1] = 'r'; -+ name[2] = '1'; -+ name[3] = regno - 112 - 10 + '0'; -+ namelen = 4; -+ break; -+ - case 128: -+ *setname = "special"; - *type = DW_ATE_unsigned; - return stpcpy (name, "spsr") + 1 - name; - -+ case 129: -+ *setname = "special"; -+ *type = DW_ATE_unsigned; -+ return stpcpy(name, "spsr_fiq") + 1 - name; -+ -+ case 130: -+ *setname = "special"; -+ *type = DW_ATE_unsigned; -+ return stpcpy(name, "spsr_irq") + 1 - name; -+ -+ case 131: -+ *setname = "special"; -+ *type = DW_ATE_unsigned; -+ return stpcpy(name, "spsr_abt") + 1 - name; -+ -+ case 132: -+ *setname = "special"; -+ *type = DW_ATE_unsigned; -+ return stpcpy(name, "spsr_und") + 1 - name; -+ -+ case 133: -+ *setname = "special"; -+ *type = DW_ATE_unsigned; -+ return stpcpy(name, "spsr_svc") + 1 - name; -+ -+ case 144 ... 150: -+ *setname = "integer"; -+ *type = DW_ATE_signed; -+ *bits = 32; -+ return sprintf(name, "r%d_usr", regno - 144 + 8) + 1; -+ -+ case 151 ... 157: -+ *setname = "integer"; -+ *type = DW_ATE_signed; -+ *bits = 32; -+ return sprintf(name, "r%d_fiq", regno - 151 + 8) + 1; -+ -+ case 158 ... 159: -+ *setname = "integer"; -+ *type = DW_ATE_signed; -+ *bits = 32; -+ return sprintf(name, "r%d_irq", regno - 158 + 13) + 1; -+ -+ case 160 ... 161: -+ *setname = "integer"; -+ *type = DW_ATE_signed; -+ *bits = 32; -+ return sprintf(name, "r%d_abt", regno - 160 + 13) + 1; -+ -+ case 162 ... 163: -+ *setname = "integer"; -+ *type = DW_ATE_signed; -+ *bits = 32; -+ return sprintf(name, "r%d_und", regno - 162 + 13) + 1; -+ -+ case 164 ... 165: -+ *setname = "integer"; -+ *type = DW_ATE_signed; -+ *bits = 32; -+ return sprintf(name, "r%d_svc", regno - 164 + 13) + 1; -+ -+ case 192 ... 199: -+ *setname = "MMX"; -+ *bits = 32; -+ *type = DW_ATE_unsigned; -+ name[0] = 'w'; -+ name[1] = 'c'; -+ name[2] = regno - 192 + '0'; -+ namelen = 3; -+ break; -+ - case 256 + 0 ... 256 + 9: -+ /* XXX TODO: Neon also uses those registers and can contain -+ * both float and integers */ - *setname = "VFP"; - *type = DW_ATE_float; - *bits = 64; -Index: elfutils-0.155/backends/arm_retval.c -=================================================================== ---- elfutils-0.155.orig/backends/arm_retval.c -+++ elfutils-0.155/backends/arm_retval.c -@@ -48,6 +48,13 @@ static const Dwarf_Op loc_intreg[] = - #define nloc_intreg 1 - #define nloc_intregs(n) (2 * (n)) - -+/* f1 */ /* XXX TODO: f0 can also have number 96 if program was compiled with -mabi=aapcs */ -+static const Dwarf_Op loc_fpreg[] = -+ { -+ { .atom = DW_OP_reg16 }, -+ }; -+#define nloc_fpreg 1 -+ - /* The return value is a structure and is actually stored in stack space - passed in a hidden argument by the caller. But, the compiler - helpfully returns the address of that space in r0. */ -@@ -58,8 +65,9 @@ static const Dwarf_Op loc_aggregate[] = - #define nloc_aggregate 1 - - --int --arm_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp) -+static int -+arm_return_value_location_ (Dwarf_Die *functypedie, const Dwarf_Op **locp, -+ int soft_float) - { - /* Start with the function's type, and get the DW_AT_type attribute, - which is the type of the return value. */ -@@ -112,14 +120,31 @@ arm_return_value_location (Dwarf_Die *fu - else - return -1; - } -+ if (tag == DW_TAG_base_type) -+ { -+ Dwarf_Word encoding; -+ if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding, -+ &attr_mem), &encoding) != 0) -+ return -1; -+ -+ if ((encoding == DW_ATE_float) && !soft_float) -+ { -+ *locp = loc_fpreg; -+ if (size <= 8) -+ return nloc_fpreg; -+ goto aggregate; -+ } -+ } - if (size <= 16) - { - intreg: - *locp = loc_intreg; - return size <= 4 ? nloc_intreg : nloc_intregs ((size + 3) / 4); - } -+ /* fall through. */ - - aggregate: -+ /* XXX TODO sometimes aggregates are returned in r0 (-mabi=aapcs) */ - *locp = loc_aggregate; - return nloc_aggregate; - -@@ -138,3 +163,18 @@ arm_return_value_location (Dwarf_Die *fu - DWARF and might be valid. */ - return -2; - } -+ -+/* return location for -mabi=apcs-gnu -msoft-float */ -+int -+arm_return_value_location_soft (Dwarf_Die *functypedie, const Dwarf_Op **locp) -+{ -+ return arm_return_value_location_ (functypedie, locp, 1); -+} -+ -+/* return location for -mabi=apcs-gnu -mhard-float (current default) */ -+int -+arm_return_value_location_hard (Dwarf_Die *functypedie, const Dwarf_Op **locp) -+{ -+ return arm_return_value_location_ (functypedie, locp, 0); -+} -+ -Index: elfutils-0.155/libelf/elf.h -=================================================================== ---- elfutils-0.155.orig/libelf/elf.h -+++ elfutils-0.155/libelf/elf.h -@@ -2281,6 +2281,9 @@ typedef Elf32_Addr Elf32_Conflict; - #define EF_ARM_EABI_VER4 0x04000000 - #define EF_ARM_EABI_VER5 0x05000000 - -+/* EI_OSABI values */ -+#define ELFOSABI_ARM_AEABI 64 /* Contains symbol versioning. */ -+ - /* Additional symbol types for Thumb. */ - #define STT_ARM_TFUNC STT_LOPROC /* A Thumb function. */ - #define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */ -@@ -2298,12 +2301,19 @@ typedef Elf32_Addr Elf32_Conflict; - - /* Processor specific values for the Phdr p_type field. */ - #define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */ -+#define PT_ARM_UNWIND PT_ARM_EXIDX - - /* Processor specific values for the Shdr sh_type field. */ - #define SHT_ARM_EXIDX (SHT_LOPROC + 1) /* ARM unwind section. */ - #define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2) /* Preemption details. */ - #define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3) /* ARM attributes section. */ - -+/* Processor specific values for the Dyn d_tag field. */ -+#define DT_ARM_RESERVED1 (DT_LOPROC + 0) -+#define DT_ARM_SYMTABSZ (DT_LOPROC + 1) -+#define DT_ARM_PREEMTMAB (DT_LOPROC + 2) -+#define DT_ARM_RESERVED2 (DT_LOPROC + 3) -+#define DT_ARM_NUM 4 - - /* ARM relocs. */ - -@@ -2336,12 +2346,75 @@ typedef Elf32_Addr Elf32_Conflict; - #define R_ARM_GOTPC 25 /* 32 bit PC relative offset to GOT */ - #define R_ARM_GOT32 26 /* 32 bit GOT entry */ - #define R_ARM_PLT32 27 /* 32 bit PLT address */ -+#define R_ARM_CALL 28 -+#define R_ARM_JUMP24 29 -+#define R_ARM_THM_JUMP24 30 -+#define R_ARM_BASE_ABS 31 - #define R_ARM_ALU_PCREL_7_0 32 - #define R_ARM_ALU_PCREL_15_8 33 - #define R_ARM_ALU_PCREL_23_15 34 - #define R_ARM_LDR_SBREL_11_0 35 - #define R_ARM_ALU_SBREL_19_12 36 - #define R_ARM_ALU_SBREL_27_20 37 -+#define R_ARM_TARGET1 38 -+#define R_ARM_SBREL31 39 -+#define R_ARM_V4BX 40 -+#define R_ARM_TARGET2 41 -+#define R_ARM_PREL31 42 -+#define R_ARM_MOVW_ABS_NC 43 -+#define R_ARM_MOVT_ABS 44 -+#define R_ARM_MOVW_PREL_NC 45 -+#define R_ARM_MOVT_PREL 46 -+#define R_ARM_THM_MOVW_ABS_NC 47 -+#define R_ARM_THM_MOVT_ABS 48 -+#define R_ARM_THM_MOVW_PREL_NC 49 -+#define R_ARM_THM_MOVT_PREL 50 -+#define R_ARM_THM_JUMP19 51 -+#define R_ARM_THM_JUMP6 52 -+#define R_ARM_THM_ALU_PREL_11_0 53 -+#define R_ARM_THM_PC12 54 -+#define R_ARM_ABS32_NO 55 -+#define R_ARM_REL32_NO 56 -+#define R_ARM_ALU_PC_G0_NC 57 -+#define R_ARM_ALU_PC_G0 58 -+#define R_ARM_ALU_PC_G1_NC 59 -+#define R_ARM_ALU_PC_G1 60 -+#define R_ARM_ALU_PC_G2 61 -+#define R_ARM_LDR_PC_G1 62 -+#define R_ARM_LDR_PC_G2 63 -+#define R_ARM_LDRS_PC_G0 64 -+#define R_ARM_LDRS_PC_G1 65 -+#define R_ARM_LDRS_PC_G2 66 -+#define R_ARM_LDC_PC_G0 67 -+#define R_ARM_LDC_PC_G1 68 -+#define R_ARM_LDC_PC_G2 69 -+#define R_ARM_ALU_SB_G0_NC 70 -+#define R_ARM_ALU_SB_G0 71 -+#define R_ARM_ALU_SB_G1_NC 72 -+#define R_ARM_ALU_SB_G1 73 -+#define R_ARM_ALU_SB_G2 74 -+#define R_ARM_LDR_SB_G0 75 -+#define R_ARM_LDR_SB_G1 76 -+#define R_ARM_LDR_SB_G2 77 -+#define R_ARM_LDRS_SB_G0 78 -+#define R_ARM_LDRS_SB_G1 79 -+#define R_ARM_LDRS_SB_G2 80 -+#define R_ARM_LDC_G0 81 -+#define R_ARM_LDC_G1 82 -+#define R_ARM_LDC_G2 83 -+#define R_ARM_MOVW_BREL_NC 84 -+#define R_ARM_MOVT_BREL 85 -+#define R_ARM_MOVW_BREL 86 -+#define R_ARM_THM_MOVW_BREL_NC 87 -+#define R_ARM_THM_MOVT_BREL 88 -+#define R_ARM_THM_MOVW_BREL 89 -+/* 90-93 unallocated */ -+#define R_ARM_PLT32_ABS 94 -+#define R_ARM_GOT_ABS 95 -+#define R_ARM_GOT_PREL 96 -+#define R_ARM_GOT_BREL12 97 -+#define R_ARM_GOTOFF12 98 -+#define R_ARM_GOTRELAX 99 - #define R_ARM_TLS_GOTDESC 90 - #define R_ARM_TLS_CALL 91 - #define R_ARM_TLS_DESCSEQ 92 -@@ -2360,6 +2433,13 @@ typedef Elf32_Addr Elf32_Conflict; - static TLS block offset */ - #define R_ARM_TLS_LE32 108 /* 32 bit offset relative to static - TLS block */ -+#define R_ARM_TLS_LDO12 109 -+#define R_ARM_TLS_LE12 110 -+#define R_ARM_TLS_IE12GP 111 -+/* 112 - 127 private range */ -+#define R_ARM_ME_TOO 128|/* obsolete */ -+ -+ - #define R_ARM_THM_TLS_DESCSEQ 129 - #define R_ARM_IRELATIVE 160 - #define R_ARM_RXPC25 249 -Index: elfutils-0.155/backends/libebl_arm.h -=================================================================== ---- /dev/null -+++ elfutils-0.155/backends/libebl_arm.h -@@ -0,0 +1,9 @@ -+#ifndef _LIBEBL_ARM_H -+#define _LIBEBL_ARM_H 1 -+ -+#include <libdw.h> -+ -+extern int arm_return_value_location_soft(Dwarf_Die *, const Dwarf_Op **locp); -+extern int arm_return_value_location_hard(Dwarf_Die *, const Dwarf_Op **locp); -+ -+#endif
meta/recipes-devtools/elfutils/elfutils-0.155/dso-link-change.patch deleted +0 -32
@@ -1,32 +0,0 @@ -Upstream-Status: Pending - -# This patch makes the link to the dependencies of libdw explicit, as recent -# ld no longer implicitly links them. See -# http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html as -# a similar example of the error message you can encounter without this patch, -# and https://fedoraproject.org/wiki/UnderstandingDSOLinkChange and -# https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking for more -# details. - ---- elfutils-0.155.orig/src/Makefile.am -+++ elfutils-0.155/src/Makefile.am -@@ -86,7 +86,7 @@ libdw = ../libdw/libdw.a $(zip_LIBS) $(l - libelf = ../libelf/libelf.a - else - libasm = ../libasm/libasm.so --libdw = ../libdw/libdw.so -+libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl - libelf = ../libelf/libelf.so - endif - libebl = ../libebl/libebl.a ---- elfutils-0.155.orig/tests/Makefile.am -+++ elfutils-0.155/tests/Makefile.am -@@ -172,7 +172,7 @@ libdw = ../libdw/libdw.a $(zip_LIBS) $(l - libelf = ../libelf/libelf.a - libasm = ../libasm/libasm.a - else --libdw = ../libdw/libdw.so -+libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl - libelf = ../libelf/libelf.so - libasm = ../libasm/libasm.so - endif
meta/recipes-devtools/elfutils/elfutils-0.155/elf_additions.diff deleted +0 -61
61 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/elfutils-ar-c-fix-num-passed-to-memset.patch deleted +0 -23
@@ -1,23 +0,0 @@ -Upstream-Status: Backport - -ar.c (do_oper_delete): Fix num passed to memset -native build failed as following on Fedora18+: -ar.c: In function 'do_oper_delete': -ar.c:918:31: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] - memset (found, '\0', sizeof (found)); - ^ -The original commit is http://git.fedorahosted.org/cgit/elfutils.git/commit/src/ar.c?id=1a4d0668d18bf1090c5c08cdb5cb3ba2b8eb5410 - -Signed-off-by: Zhenhua Luo <[email protected]> - ---- elfutils-0.155/src/ar.c.org 2013-03-12 21:12:17.928281375 -0500 -+++ elfutils-0.155/src/ar.c 2013-03-12 21:15:30.053285271 -0500 -@@ -915,7 +915,7 @@ - long int instance) - { - bool *found = alloca (sizeof (bool) * argc); -- memset (found, '\0', sizeof (found)); -+ memset (found, '\0', sizeof (bool) * argc); - - /* List of the files we keep. */ - struct armem *to_copy = NULL;
meta/recipes-devtools/elfutils/elfutils-0.155/hppa_backend.diff deleted +0 -801
801 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/i386_dis.h deleted +0 -1657
1,633 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/m68k_backend.diff deleted +0 -309
309 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/mempcpy.patch deleted +0 -24
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/elfutils/elfutils-0.155/mips_backend.diff deleted +0 -714
714 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch deleted +0 -27
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/elfutils/elfutils-0.155/redhat-portability.diff deleted +0 -1547
1,547 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/redhat-robustify.diff deleted +0 -1824
1,824 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/uclibc-support.patch deleted +0 -91
91 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.155/x86_64_dis.h deleted +0 -1632
1,632 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.8.1.2
Part of the diff is not shown here. View the raw message.
PATCH 2/3 elfutils: upgrade to 0.158
In reply to Hongxu JiaAdd 'm4-biarch.m4-tweak-AC_RUN_IFELSE-for-cross-compiling.patch' to fix cross compiling failure;
Rebase 'elf_additions.diff' for 0.158;
Drop obsolete patches:
- nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch
- elfutils-ar-c-fix-num-passed-to-memset.patch
- fix-build-gcc-4.8.patch
---
.../{elfutils_0.155.bb => elfutils_0.158.bb} | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
rename meta/recipes-devtools/elfutils/{elfutils_0.155.bb => elfutils_0.158.bb} (81%)meta/recipes-devtools/elfutils/elfutils_0.158.bb renamed from meta/recipes-devtools/elfutils/elfutils_0.155.bb +7 -14
@@ -7,23 +7,16 @@ DEPENDS = "libtool bzip2 zlib virtual/libintl" SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/${PV}/elfutils-${PV}.tar.bz2" -SRC_URI[md5sum] = "163a5712b86f6bdfebdf233cc6e2192d" -SRC_URI[sha256sum] = "68444a4526416ffd68852ec3c6a40ceddcca46538297322405319884c5d30ed8" +SRC_URI[md5sum] = "050a4909e452d01ab4747fd69d4036e0" +SRC_URI[sha256sum] = "be27af5c21352f53e010342bf1c68e0b9e18232dbf3adec7e2f9b41f6bbe397d" -SRC_URI += "\ - file://redhat-portability.diff \ - file://redhat-robustify.diff \ - file://hppa_backend.diff \ - file://arm_backend.diff \ - file://mips_backend.diff \ - file://m68k_backend.diff \ - file://elf_additions.diff \ - file://mempcpy.patch \ +SRC_URI += " \ + file://elf_additions.diff \ + file://mempcpy.patch \ file://dso-link-change.patch \ - file://nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch \ - file://elfutils-ar-c-fix-num-passed-to-memset.patch \ - file://fix-build-gcc-4.8.patch \ + file://m4-biarch.m4-tweak-AC_RUN_IFELSE-for-cross-compiling.patch \ " + # Only apply when building uclibc based target recipe SRC_URI_append_libc-uclibc = " file://uclibc-support.patch"
Signature · 1 line
1.8.1.2
Quoted 3 lines · Hongxu Jia
Add 'm4-biarch.m4-tweak-AC_RUN_IFELSE-for-cross-compiling.patch' to fix cross compiling failure;
Rebase 'elf_additions.diff' for 0.158;
I am sorry to missing 'm4-biarch.m4-tweak-AC_RUN_IFELSE-for-cross-compiling.patch' and 'elf_additions.diff' in this patch.
V2 incoming.
//Hongxu
Quoted 49 lines
Drop obsolete patches:
- nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch
- elfutils-ar-c-fix-num-passed-to-memset.patch
- fix-build-gcc-4.8.patchSigned-off-by Hongxu Jia <[email protected]>--- .../{elfutils_0.155.bb => elfutils_0.158.bb} | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-)rename meta/recipes-devtools/elfutils/{elfutils_0.155.bb => elfutils_0.158.bb} (81%)
meta/recipes-devtools/elfutils/elfutils_0.158.bb renamed from meta/recipes-devtools/elfutils/elfutils_0.155.bb +7
-14@@ -7,23 +7,16 @@ DEPENDS = "libtool bzip2 zlib virtual/libintl" SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/${PV}/elfutils-${PV}.tar.bz2" -SRC_URI[md5sum] = "163a5712b86f6bdfebdf233cc6e2192d" -SRC_URI[sha256sum] = "68444a4526416ffd68852ec3c6a40ceddcca46538297322405319884c5d30ed8" +SRC_URI[md5sum] = "050a4909e452d01ab4747fd69d4036e0" +SRC_URI[sha256sum] = "be27af5c21352f53e010342bf1c68e0b9e18232dbf3adec7e2f9b41f6bbe397d" -SRC_URI += "\ - file://redhat-portability.diff \ - file://redhat-robustify.diff \ - file://hppa_backend.diff \ - file://arm_backend.diff \ - file://mips_backend.diff \ - file://m68k_backend.diff \ - file://elf_additions.diff \ - file://mempcpy.patch \ +SRC_URI += " \ + file://elf_additions.diff \ + file://mempcpy.patch \ file://dso-link-change.patch \ - file://nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch \ - file://elfutils-ar-c-fix-num-passed-to-memset.patch \ - file://fix-build-gcc-4.8.patch \ + file://m4-biarch.m4-tweak-AC_RUN_IFELSE-for-cross-compiling.patch \ " + # Only apply when building uclibc based target recipe SRC_URI_append_libc-uclibc = " file://uclibc-support.patch"
PATCH 3/3 elfutils: backport from debian
In reply to Hongxu JiaPick patches from debian:
http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.158-2.debian.tar.xz
We could not directly add elfutils_0.158-2.debian.tar.xz to SRC_URI, because it contains other souce codes which are not pathces.
--- .../elfutils/elfutils-0.158/CVE-2014-0172.patch | 35 + .../elfutils/elfutils-0.158/arm_backend.diff | 603 +++++++ .../elfutils/elfutils-0.158/core_filename.patch | 27 + .../elfutils/elfutils-0.158/hppa_backend.diff | 800 +++++++++ .../elfutils/elfutils-0.158/m68k_backend.diff | 493 ++++++ .../elfutils/elfutils-0.158/mips_backend.diff | 712 ++++++++ .../elfutils/elfutils-0.158/mips_readelf_w.patch | 22 + .../elfutils-0.158/redhat-portability.diff | 1814 ++++++++++++++++++++ .../elfutils/elfutils-0.158/redhat-robustify.diff | 1756 +++++++++++++++++++ .../elfutils/elfutils-0.158/scanf-format.patch | 40 + .../elfutils-0.158/testsuite-ignore-elflint.diff | 39 + .../elfutils/elfutils-0.158/unwind_non_linux.patch | 256 +++ meta/recipes-devtools/elfutils/elfutils_0.158.bb | 17 + 13 files changed, 6614 insertions(+) create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/CVE-2014-0172.patch create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/arm_backend.diff create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/core_filename.patch create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/hppa_backend.diff create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/m68k_backend.diff create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/mips_backend.diff create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/redhat-portability.diff create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/redhat-robustify.diff create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/scanf-format.patch create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/testsuite-ignore-elflint.diff create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.158/unwind_non_linux.patch
meta/recipes-devtools/elfutils/elfutils-0.158/CVE-2014-0172.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 7f1eec317db79627b473c5b149a22a1b20d1f68f Mon Sep 17 00:00:00 2001 +From: Mark Wielaard <[email protected]> +Date: Wed, 9 Apr 2014 11:33:23 +0200 +Subject: [PATCH] CVE-2014-0172 Check for overflow before calling malloc to + uncompress data. + +https://bugzilla.redhat.com/show_bug.cgi?id=1085663 + +Reported-by: Florian Weimer <[email protected]> +Signed-off-by: Mark Wielaard <[email protected]> + +Index: elfutils-0.158/libdw/dwarf_begin_elf.c +=================================================================== +--- elfutils-0.158.orig/libdw/dwarf_begin_elf.c 2014-05-01 17:10:01.928213292 +0000 ++++ elfutils-0.158/libdw/dwarf_begin_elf.c 2014-05-01 17:10:01.924213375 +0000 +@@ -1,5 +1,5 @@ + /* Create descriptor from ELF descriptor for processing file. +- Copyright (C) 2002-2011 Red Hat, Inc. ++ Copyright (C) 2002-2011, 2014 Red Hat, Inc. + This file is part of elfutils. + Written by Ulrich Drepper <[email protected]>, 2002. + +@@ -289,6 +289,12 @@ + memcpy (&size, data->d_buf + 4, sizeof size); + size = be64toh (size); + ++ /* Check for unsigned overflow so malloc always allocated ++ enough memory for both the Elf_Data header and the ++ uncompressed section data. */ ++ if (unlikely (sizeof (Elf_Data) + size < size)) ++ break; ++ + Elf_Data *zdata = malloc (sizeof (Elf_Data) + size); + if (unlikely (zdata == NULL)) + break;
meta/recipes-devtools/elfutils/elfutils-0.158/arm_backend.diff new file +603 -0
603 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.158/core_filename.patch new file +27 -0
@@ -0,0 +1,27 @@ +From: Matthias Klose <[email protected]> +Date: Tue, 7 Jan 2014 10:25:29 +0100 +Subject: [PATCH] tests: backtrace-subr.sh (check_native_core) should check + core file name. + +Needed when /proc/sys/kernel/core_uses_pid is set to 0. Try to rename +the core file, and if it does still fail, skip the test. + +diff --git a/tests/backtrace-subr.sh b/tests/backtrace-subr.sh +index e7ece91..62b873c 100644 +--- a/tests/backtrace-subr.sh ++++ b/tests/backtrace-subr.sh +@@ -111,6 +111,11 @@ check_native_core() + + # Skip the test if we cannot adjust core ulimit. + core="core.`ulimit -c unlimited || exit 77; set +ex; testrun ${abs_builddir}/$child --gencore; true`" ++ # see if /proc/sys/kernel/core_uses_pid is set to 0 ++ if [ -f core ]; then ++ mv core "$core" ++ fi ++ if [ ! -f "$core" ]; then exit 77; fi + + if [ "x$SAVED_VALGRIND_CMD" != "x" ]; then + VALGRIND_CMD="$SAVED_VALGRIND_CMD" +-- +1.9.2 +
meta/recipes-devtools/elfutils/elfutils-0.158/hppa_backend.diff new file +800 -0
800 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.158/m68k_backend.diff new file +493 -0
493 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.158/mips_backend.diff new file +712 -0
712 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch new file +22 -0
@@ -0,0 +1,22 @@ +From: Kurt Roeckx <[email protected]> +Subject: Make readelf -w output debug information on mips +Bug-Debian: http://bugs.debian.org/662041 +Forwarded: not-needed + +Upstreams wants a change where this is handled by a hook that needs +to be filled in by the backend for the arch. + +Index: elfutils-0.153/src/readelf.c +=================================================================== +--- elfutils-0.153.orig/src/readelf.c 2012-08-10 22:01:55.000000000 +0200 ++++ elfutils-0.153/src/readelf.c 2012-09-18 21:46:27.000000000 +0200 +@@ -7364,7 +7364,8 @@ + GElf_Shdr shdr_mem; + GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); + +- if (shdr != NULL && shdr->sh_type == SHT_PROGBITS) ++ if (shdr != NULL && ( ++ (shdr->sh_type == SHT_PROGBITS) || (shdr->sh_type == SHT_MIPS_DWARF))) + { + static const struct + {
meta/recipes-devtools/elfutils/elfutils-0.158/redhat-portability.diff new file +1814 -0
308 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.158/redhat-robustify.diff new file +1756 -0
1,756 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils-0.158/scanf-format.patch new file +40 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/elfutils/elfutils-0.158/testsuite-ignore-elflint.diff new file +39 -0
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/elfutils/elfutils-0.158/unwind_non_linux.patch new file +256 -0
256 lines not on this page · raw message
meta/recipes-devtools/elfutils/elfutils_0.158.bb +17 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.8.1.2
Part of the diff is not shown here. View the raw message.