elfutils: Added recipe for elfutils-0.148 from oe-core.
PATCH 1/1 elfutils: Added recipe for elfutils-0.148 from oe-core.
This resolves a build issue with 0.143 in which strip.c uses stat64 without an appropriate header.
--- recipes/elfutils/elfutils-0.148/arm_backend.diff | 449 +++++ recipes/elfutils/elfutils-0.148/do-autoreconf.diff | 339 ++++ recipes/elfutils/elfutils-0.148/elf_additions.diff | 71 + .../elfutils/elfutils-0.148/elfutils-fsize.patch | 39 + recipes/elfutils/elfutils-0.148/hppa_backend.diff | 801 +++++++++ recipes/elfutils/elfutils-0.148/i386_dis.h | 1657 +++++++++++++++++++ recipes/elfutils/elfutils-0.148/m68k_backend.diff | 309 ++++ recipes/elfutils/elfutils-0.148/mempcpy.patch | 25 + recipes/elfutils/elfutils-0.148/mips_backend.diff | 713 ++++++++ .../elfutils-0.148/redhat-portability.diff | 1124 +++++++++++++ .../elfutils/elfutils-0.148/redhat-robustify.diff | 1709 ++++++++++++++++++++ .../elfutils/elfutils-0.148/remove-unused.patch | 154 ++ .../elfutils-0.148/testsuite-ignore-elflint.diff | 21 + .../elfutils/elfutils-0.148/uclibc-support.patch | 91 ++ recipes/elfutils/elfutils-0.148/x86_64_dis.h | 1632 +++++++++++++++++++ recipes/elfutils/elfutils_0.148.bb | 61 + 16 files changed, 9195 insertions(+), 0 deletions(-) create mode 100644 recipes/elfutils/elfutils-0.148/arm_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/do-autoreconf.diff create mode 100644 recipes/elfutils/elfutils-0.148/elf_additions.diff create mode 100644 recipes/elfutils/elfutils-0.148/elfutils-fsize.patch create mode 100644 recipes/elfutils/elfutils-0.148/hppa_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/i386_dis.h create mode 100644 recipes/elfutils/elfutils-0.148/m68k_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/mempcpy.patch create mode 100644 recipes/elfutils/elfutils-0.148/mips_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/redhat-portability.diff create mode 100644 recipes/elfutils/elfutils-0.148/redhat-robustify.diff create mode 100644 recipes/elfutils/elfutils-0.148/remove-unused.patch create mode 100644 recipes/elfutils/elfutils-0.148/testsuite-ignore-elflint.diff create mode 100644 recipes/elfutils/elfutils-0.148/uclibc-support.patch create mode 100644 recipes/elfutils/elfutils-0.148/x86_64_dis.h create mode 100644 recipes/elfutils/elfutils_0.148.bb
recipes/elfutils/elfutils-0.148/arm_backend.diff new file +449 -0
@@ -0,0 +1,449 @@ +Upstream-Status: Backport + +Index: elfutils-0.146/backends/arm_init.c +=================================================================== +--- elfutils-0.146.orig/backends/arm_init.c 2009-04-21 14:50:01.000000000 +0000 ++++ elfutils-0.146/backends/arm_init.c 2010-04-24 10:11:13.000000000 +0000 +@@ -32,21 +32,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); +@@ -58,7 +69,10 @@ + 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.146/backends/arm_regs.c +=================================================================== +--- elfutils-0.146.orig/backends/arm_regs.c 2009-04-21 14:50:01.000000000 +0000 ++++ elfutils-0.146/backends/arm_regs.c 2010-04-24 10:11:13.000000000 +0000 +@@ -28,6 +28,7 @@ + #endif + + #include <string.h> ++#include <stdio.h> + #include <dwarf.h> + + #define BACKEND arm_ +@@ -58,7 +59,15 @@ + 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'; +@@ -73,6 +82,9 @@ + 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: +@@ -84,11 +96,139 @@ + 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.146/backends/arm_retval.c +=================================================================== +--- elfutils-0.146.orig/backends/arm_retval.c 2010-01-12 16:57:54.000000000 +0000 ++++ elfutils-0.146/backends/arm_retval.c 2010-04-24 10:11:13.000000000 +0000 +@@ -45,6 +45,13 @@ + #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. */ +@@ -55,8 +62,9 @@ + #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. */ +@@ -109,14 +117,31 @@ + 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; + +@@ -135,3 +160,18 @@ + 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.146/libelf/elf.h +=================================================================== +--- elfutils-0.146.orig/libelf/elf.h 2010-04-24 10:11:11.000000000 +0000 ++++ elfutils-0.146/libelf/elf.h 2010-04-24 10:11:13.000000000 +0000 +@@ -2290,6 +2290,9 @@ + #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. */ +@@ -2307,12 +2310,19 @@ + + /* 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. */ + +@@ -2344,12 +2354,75 @@ + #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_NOI 55 ++#define R_ARM_REL32_NOI 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_GNU_VTENTRY 100 + #define R_ARM_GNU_VTINHERIT 101 + #define R_ARM_THM_PC11 102 /* thumb unconditional branch */ +@@ -2364,6 +2437,12 @@ + 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_RXPC25 249 + #define R_ARM_RSBREL32 250 + #define R_ARM_THM_RPC22 251 +Index: elfutils-0.146/backends/libebl_arm.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ elfutils-0.146/backends/libebl_arm.h 2010-04-24 10:11:13.000000000 +0000 +@@ -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
recipes/elfutils/elfutils-0.148/do-autoreconf.diff new file +339 -0
339 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/elf_additions.diff new file +71 -0
71 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/elfutils-fsize.patch new file +39 -0
@@ -0,0 +1,39 @@ +Upstream-Status: Backport + +The ELF_T_LIB and ELF_T_GNUHASH sizes were missing from fsize table. + +This could cause a failure in the elf*_xlatetof function. + +diff -ur elfutils-0.148.orig/libelf/exttypes.h elfutils-0.148/libelf/exttypes.h +--- elfutils-0.148.orig/libelf/exttypes.h 2009-01-08 12:56:37.000000000 -0800 ++++ elfutils-0.148/libelf/exttypes.h 2010-08-18 14:00:33.000000000 -0700 +@@ -94,6 +94,7 @@ + Vernaux32 (Ext_); + Syminfo32 (Ext_); + Move32 (Ext_); ++Lib32 (Ext_); + auxv_t32 (Ext_); + + Ehdr64 (Ext_); +@@ -110,6 +111,7 @@ + Vernaux64 (Ext_); + Syminfo64 (Ext_); + Move64 (Ext_); ++Lib64 (Ext_); + auxv_t64 (Ext_); + + #undef START +diff -ur elfutils-0.148.orig/libelf/gelf_fsize.c elfutils-0.148/libelf/gelf_fsize.c +--- elfutils-0.148.orig/libelf/gelf_fsize.c 2009-01-08 12:56:37.000000000 -0800 ++++ elfutils-0.148/libelf/gelf_fsize.c 2010-08-18 14:11:57.000000000 -0700 +@@ -87,7 +87,9 @@ + [ELF_T_NHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Nhdr)), \ + [ELF_T_SYMINFO] = sizeof (ElfW2(LIBELFBITS, Ext_Syminfo)), \ + [ELF_T_MOVE] = sizeof (ElfW2(LIBELFBITS, Ext_Move)), \ +- [ELF_T_AUXV] = sizeof (ElfW2(LIBELFBITS, Ext_auxv_t)) ++ [ELF_T_LIB] = sizeof (ElfW2(LIBELFBITS, Ext_Lib)), \ ++ [ELF_T_AUXV] = sizeof (ElfW2(LIBELFBITS, Ext_auxv_t)), \ ++ [ELF_T_GNUHASH] = ELFW2(LIBELFBITS, FSZ_WORD) + TYPE_SIZES (32) + }, + [ELFCLASS64 - 1] = {
recipes/elfutils/elfutils-0.148/hppa_backend.diff new file +801 -0
801 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/i386_dis.h new file +1657 -0
1,301 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/m68k_backend.diff new file +309 -0
309 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/mempcpy.patch new file +25 -0
Lines of this file are not shown. View the raw message.
recipes/elfutils/elfutils-0.148/mips_backend.diff new file +713 -0
713 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/redhat-portability.diff new file +1124 -0
1,124 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/redhat-robustify.diff new file +1709 -0
1,709 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/remove-unused.patch new file +154 -0
154 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/testsuite-ignore-elflint.diff new file +21 -0
Lines of this file are not shown. View the raw message.
recipes/elfutils/elfutils-0.148/uclibc-support.patch new file +91 -0
91 lines not on this page · raw message
recipes/elfutils/elfutils-0.148/x86_64_dis.h new file +1632 -0
1,632 lines not on this page · raw message
recipes/elfutils/elfutils_0.148.bb new file +61 -0
61 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.3.4
Part of the diff is not shown here. View the raw message.
Am Mittwoch, den 15.06.2011, 09:26 +0800 schrieb James Limbouris:
»elfutils: Add version 0.148 from oe-core« would be good enough for the commit summary.
Quoted 38 lines
This resolves a build issue with 0.143 in which
strip.cuses stat64 without an appropriate header.Signed-off-by James Limbouris <[email protected]>--- recipes/elfutils/elfutils-0.148/arm_backend.diff | 449 +++++ recipes/elfutils/elfutils-0.148/do-autoreconf.diff | 339 ++++ recipes/elfutils/elfutils-0.148/elf_additions.diff | 71 + .../elfutils/elfutils-0.148/elfutils-fsize.patch | 39 + recipes/elfutils/elfutils-0.148/hppa_backend.diff | 801 +++++++++ recipes/elfutils/elfutils-0.148/i386_dis.h | 1657 +++++++++++++++++++ recipes/elfutils/elfutils-0.148/m68k_backend.diff | 309 ++++ recipes/elfutils/elfutils-0.148/mempcpy.patch | 25 + recipes/elfutils/elfutils-0.148/mips_backend.diff | 713 ++++++++ .../elfutils-0.148/redhat-portability.diff | 1124 +++++++++++++ .../elfutils/elfutils-0.148/redhat-robustify.diff | 1709 ++++++++++++++++++++ .../elfutils/elfutils-0.148/remove-unused.patch | 154 ++ .../elfutils-0.148/testsuite-ignore-elflint.diff | 21 + .../elfutils/elfutils-0.148/uclibc-support.patch | 91 ++ recipes/elfutils/elfutils-0.148/x86_64_dis.h | 1632 +++++++++++++++++++ recipes/elfutils/elfutils_0.148.bb | 61 + 16 files changed, 9195 insertions(+), 0 deletions(-) create mode 100644 recipes/elfutils/elfutils-0.148/arm_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/do-autoreconf.diff create mode 100644 recipes/elfutils/elfutils-0.148/elf_additions.diff create mode 100644 recipes/elfutils/elfutils-0.148/elfutils-fsize.patch create mode 100644 recipes/elfutils/elfutils-0.148/hppa_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/i386_dis.h create mode 100644 recipes/elfutils/elfutils-0.148/m68k_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/mempcpy.patch create mode 100644 recipes/elfutils/elfutils-0.148/mips_backend.diff create mode 100644 recipes/elfutils/elfutils-0.148/redhat-portability.diff create mode 100644 recipes/elfutils/elfutils-0.148/redhat-robustify.diff create mode 100644 recipes/elfutils/elfutils-0.148/remove-unused.patch create mode 100644 recipes/elfutils/elfutils-0.148/testsuite-ignore-elflint.diff create mode 100644 recipes/elfutils/elfutils-0.148/uclibc-support.patch create mode 100644 recipes/elfutils/elfutils-0.148/x86_64_dis.h create mode 100644 recipes/elfutils/elfutils_0.148.bb
[…]
recipes/elfutils/elfutils_0.148.bb line 7
Quoted 13 lines
recipes/elfutils/elfutils_0.148.bb new file +7
-0@@ -0,0 +1,61 @@ +DESCRIPTION = "A collection of utilities and DSOs to handle compiled objects." +HOMEPAGE = "https://fedorahosted.org/elfutils" +SECTION = "base" +LICENSE = "OSL" +DEPENDS = "libtool bzip2 zlib" + +PR = "r2"
Since it is new in OE.dev it should start with r0.
recipes/elfutils/elfutils_0.148.bb line 15
Quoted 8 lines
recipes/elfutils/elfutils_0.148.bb new file +8
-0+ +SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/elfutils-${PV}.tar.bz2" + +SRC_URI[md5sum] = "a0bed1130135f17ad27533b0034dba8d" +SRC_URI[sha256sum] = "8aebfa4a745db21cf5429c9541fe482729b62efc7e53e9110151b4169fe887da" + +# pick the patch from debian +# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.148-1.debian.tar.gz
Remove the commented lines?
Quoted 36 lines
recipes/elfutils/elfutils_0.148.bb new file +36
-0+ +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://do-autoreconf.diff \ + file://testsuite-ignore-elflint.diff \ + file://elf_additions.diff \ + file://elfutils-fsize.patch \ + file://remove-unused.patch \ + file://mempcpy.patch \ +" + +# The buildsystem wants to generate 2 .h files from source using a binary it just built, +# which can not pass the cross compiling, so let's work around it by adding 2 .h files +# along with the do_configure_prepend() + +SRC_URI += "\ + file://i386_dis.h \ + file://x86_64_dis.h \ +" +inherit autotools gettext + +do_configure_prepend() { + sed -i 's:./i386_gendis:echo\ \#:g' ${S}/libcpu/Makefile.am + + cp ${WORKDIR}/*dis.h ${S}/libcpu +} + +# Package utilities separately +PACKAGES =+ "${PN}-binutils" +FILES_${PN}-binutils = "\ + ${bindir}/eu-addr2line \
recipes/elfutils/elfutils_0.148.bb line 61
Quoted 10 lines
recipes/elfutils/elfutils_0.148.bb new file +10
-0+ ${bindir}/eu-ld \ + ${bindir}/eu-nm \ + ${bindir}/eu-readelf \ + ${bindir}/eu-size \ + ${bindir}/eu-strip" +# Fix library issues +FILES_${PN} =+ "${libdir}/*-${PV}.so" + +# The elfutils package contains symlinks that trip up insane +INSANE_SKIP_elfutils = "1"
Task compile is (still) failing for me using minimal for MACHINE = "beagleboard".
arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I.. -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT elf_getbase.o -MD -MP -MF .deps/elf_getbase.Tpo -c -o elf_getbase.o elf_getbase.c
mv -f .deps/elf_end.Tpo .deps/elf_end.Po
arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -D_GNU_SOURERROR: Function 'do_compile' failed (see /oe/build-minimal-eglibc/minimal-dev/work/armv7a-oe-linux-gnueabi/elfutils-0.148-r2/temp/log.do_compile.21604 for further information)
CE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I.. -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT elf_getident.o -MD -MP -MF .deps/elf_getident.Tpo -c -o elf_getident.o elf_getident.c
mv -f .deps/gelf_getclass.Tpo .deps/gelf_getclass.Po
arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroot/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I.. -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -fgnu89-inline -Wformat=2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT elf32_fsize.o -MD -MP -MF .deps/elf32_fsize.Tpo -c -o elf32_fsize.o elf32_fsize.c
elf_getbase.c:62:1: error: conflicting types for 'elf_getbase'
./libelf.h:207:15: note: previous declaration of 'elf_getbase' was here
make[2]: *** [elf_getbase.o] Error 1
Thanks,
Paul