summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2010-09-19 09:02:53 +0000
committerRyan Hill <dirtyepic@gentoo.org>2010-09-19 09:02:53 +0000
commit2db0984a288ed29f8d17f4196489686ee6f77753 (patch)
treef5563a9f1286f9ea992e10a61ed630872cf873b6 /dev-libs/elfutils
parentfix CONFIG_SHELL wrt #335944 (diff)
downloadgentoo-2-2db0984a288ed29f8d17f4196489686ee6f77753.tar.gz
gentoo-2-2db0984a288ed29f8d17f4196489686ee6f77753.tar.bz2
gentoo-2-2db0984a288ed29f8d17f4196489686ee6f77753.zip
Version bump, remove old.
(Portage version: 2.2_rc83/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/elfutils')
-rw-r--r--dev-libs/elfutils/ChangeLog11
-rw-r--r--dev-libs/elfutils/elfutils-0.131-r2.ebuild53
-rw-r--r--dev-libs/elfutils/elfutils-0.147.ebuild61
-rw-r--r--dev-libs/elfutils/elfutils-0.149.ebuild (renamed from dev-libs/elfutils/elfutils-0.145.ebuild)12
-rw-r--r--dev-libs/elfutils/files/elfutils-0.131-gnu-inline.patch255
-rw-r--r--dev-libs/elfutils/files/elfutils-0.143-fix-fill_mmap-for-sections-past-the-section-headers.patch34
-rw-r--r--dev-libs/elfutils/files/elfutils-0.144-sloppy-include.patch114
7 files changed, 15 insertions, 525 deletions
diff --git a/dev-libs/elfutils/ChangeLog b/dev-libs/elfutils/ChangeLog
index 5900c184dcb0..948c672e5086 100644
--- a/dev-libs/elfutils/ChangeLog
+++ b/dev-libs/elfutils/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-libs/elfutils
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.141 2010/08/10 02:39:35 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.142 2010/09/19 09:02:53 dirtyepic Exp $
+
+*elfutils-0.149 (19 Sep 2010)
+
+ 19 Sep 2010; Ryan Hill <dirtyepic@gentoo.org> -elfutils-0.131-r2.ebuild,
+ -files/elfutils-0.131-gnu-inline.patch,
+ -files/elfutils-0.143-fix-fill_mmap-for-sections-past-the-section-headers.
+ patch, -files/elfutils-0.144-sloppy-include.patch, -elfutils-0.145.ebuild,
+ -elfutils-0.147.ebuild, +elfutils-0.149.ebuild:
+ Version bump, remove old.
10 Aug 2010; Jeroen Roovers <jer@gentoo.org> elfutils-0.146.ebuild:
Stable for HPPA (bug #321943).
diff --git a/dev-libs/elfutils/elfutils-0.131-r2.ebuild b/dev-libs/elfutils/elfutils-0.131-r2.ebuild
deleted file mode 100644
index fa92997b1fc3..000000000000
--- a/dev-libs/elfutils/elfutils-0.131-r2.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.131-r2.ebuild,v 1.10 2010/03/31 18:16:11 solar Exp $
-
-inherit eutils
-
-DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
-HOMEPAGE="http://people.redhat.com/drepper/"
-#SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz"
-SRC_URI="mirror://debian/pool/main/e/elfutils/elfutils_${PV}.orig.tar.gz"
-
-LICENSE="OpenSoftware"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
-IUSE="elibc_glibc"
-
-# This pkg does not actually seem to compile currently in a uClibc
-# environment (xrealloc errs), but we need to ensure that glibc never
-# gets pulled in as a dep since this package does not respect virtual/libc
-DEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3.2 )
- sys-devel/gettext
- sys-devel/autoconf
- >=sys-devel/binutils-2.15.90.0.1
- >=sys-devel/gcc-3.3.3
- !dev-libs/libelf"
-RDEPEND=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-gnu-inline.patch #204610
- epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
- find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
- sed -i 's:\<off64_t\>:__off64_t:g' libelf/libelf.h || die #204502
-}
-
-src_compile() {
- econf \
- --program-prefix="eu-" \
- --enable-shared \
- || die "./configure failed"
- emake || die
-}
-
-src_test() {
- env LD_LIBRARY_PATH="${S}/libelf:${S}/libebl:${S}/libdw:${S}/libasm" \
- make check || die "test failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
-}
diff --git a/dev-libs/elfutils/elfutils-0.147.ebuild b/dev-libs/elfutils/elfutils-0.147.ebuild
deleted file mode 100644
index 98952a8d4f3b..000000000000
--- a/dev-libs/elfutils/elfutils-0.147.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.147.ebuild,v 1.1 2010/05/29 06:10:52 dirtyepic Exp $
-
-inherit eutils
-
-DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
-HOMEPAGE="http://people.redhat.com/drepper/"
-#SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz"
-#SRC_URI="mirror://debian/pool/main/e/elfutils/elfutils_${PV}.orig.tar.gz"
-SRC_URI="https://fedorahosted.org/releases/e/l/elfutils/${P}.tar.bz2"
-
-LICENSE="GPL-2-with-exceptions"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="bzip2 lzma nls test zlib elibc_glibc"
-
-# This pkg does not actually seem to compile currently in a uClibc
-# environment (xrealloc errs), but we need to ensure that glibc never
-# gets pulled in as a dep since this package does not respect virtual/libc
-RDEPEND="zlib? ( >=sys-libs/zlib-1.2.2.3 )
- bzip2? ( app-arch/bzip2 )
- lzma? ( app-arch/xz-utils )"
-DEPEND="${RDEPEND}
- elibc_glibc? ( !prefix? ( >=sys-libs/glibc-2.7 ) )
- nls? ( sys-devel/gettext )
- >=sys-devel/flex-2.5.4a
- sys-devel/m4
- >=sys-devel/binutils-2.15.90.0.1
- >=sys-devel/gcc-4.1.2
- !dev-libs/libelf"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
- epatch "${FILESDIR}"/${PN}-0.143-configure.patch #287130
- find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
- use test || sed -i -e 's: tests::' Makefile.in #226349
-}
-
-src_compile() {
- econf \
- $(use_enable nls) \
- --program-prefix="eu-" \
- $(use_with zlib) \
- $(use_with bzip2 bzlib) \
- $(use_with lzma)
-
- emake || die
-}
-
-src_test() {
- env LD_LIBRARY_PATH="${S}/libelf:${S}/libebl:${S}/libdw:${S}/libasm" \
- emake -j1 check || die "test failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
-}
diff --git a/dev-libs/elfutils/elfutils-0.145.ebuild b/dev-libs/elfutils/elfutils-0.149.ebuild
index 136f897a8f82..0bc816bca31b 100644
--- a/dev-libs/elfutils/elfutils-0.145.ebuild
+++ b/dev-libs/elfutils/elfutils-0.149.ebuild
@@ -1,19 +1,17 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.145.ebuild,v 1.2 2010/03/31 18:16:11 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.149.ebuild,v 1.1 2010/09/19 09:02:53 dirtyepic Exp $
inherit eutils
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
-HOMEPAGE="http://people.redhat.com/drepper/"
-#SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz"
-#SRC_URI="mirror://debian/pool/main/e/elfutils/elfutils_${PV}.orig.tar.gz"
-SRC_URI="https://fedorahosted.org/releases/e/l/elfutils/${P}.tar.bz2"
+HOMEPAGE="https://fedorahosted.org/elfutils"
+SRC_URI="https://fedorahosted.org/releases/e/l/elfutils/${PV}/${P}.tar.bz2"
LICENSE="GPL-2-with-exceptions"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="bzip2 lzma nls test zlib elibc_glibc"
+IUSE="bzip2 lzma nls zlib elibc_glibc"
# This pkg does not actually seem to compile currently in a uClibc
# environment (xrealloc errs), but we need to ensure that glibc never
@@ -34,7 +32,7 @@ src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
- epatch "${FILESDIR}"/${PN}-0.143-configure.patch #287130
+ epatch "${FILESDIR}"/${PN}-0.148-bashifications.patch #287130
find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
use test || sed -i -e 's: tests::' Makefile.in #226349
}
diff --git a/dev-libs/elfutils/files/elfutils-0.131-gnu-inline.patch b/dev-libs/elfutils/files/elfutils-0.131-gnu-inline.patch
deleted file mode 100644
index 324366cd4aef..000000000000
--- a/dev-libs/elfutils/files/elfutils-0.131-gnu-inline.patch
+++ /dev/null
@@ -1,255 +0,0 @@
-fix 'extern inline' handling to use gnu inlines
-
-http://bugs.gentoo.org/204610
-
---- elfutils-0.131/backends/ia64_retval.c
-+++ elfutils-0.131/backends/ia64_retval.c
-@@ -96,7 +96,7 @@
- If we find a datum that's not the same FP type as the first datum, punt.
- If we count more than eight total homogeneous FP data, punt. */
-
-- inline int hfa (const Dwarf_Op *loc, int nregs)
-+ __gnu_inline int hfa (const Dwarf_Op *loc, int nregs)
- {
- if (fpregs_used == 0)
- *locp = loc;
---- elfutils-0.131/libdw/dwarf_entry_breakpoints.c
-+++ elfutils-0.131/libdw/dwarf_entry_breakpoints.c
-@@ -64,7 +64,7 @@
- *bkpts = NULL;
-
- /* Add one breakpoint location to the result vector. */
-- inline int add_bkpt (Dwarf_Addr pc)
-+ __gnu_inline int add_bkpt (Dwarf_Addr pc)
- {
- Dwarf_Addr *newlist = realloc (*bkpts, ++nbkpts * sizeof newlist[0]);
- if (newlist == NULL)
-@@ -80,7 +80,7 @@
- }
-
- /* Fallback result, break at the entrypc/lowpc value. */
-- inline int entrypc_bkpt (void)
-+ __gnu_inline int entrypc_bkpt (void)
- {
- Dwarf_Addr pc;
- return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc);
-@@ -107,7 +107,7 @@
- /* Search a contiguous PC range for prologue-end markers.
- If DWARF, look for proper markers.
- Failing that, if ADHOC, look for the ad hoc convention. */
-- inline int search_range (Dwarf_Addr low, Dwarf_Addr high,
-+ __gnu_inline int search_range (Dwarf_Addr low, Dwarf_Addr high,
- bool dwarf, bool adhoc)
- {
- size_t l = 0, u = nlines;
---- elfutils-0.131/libdw/dwarf_getscopevar.c
-+++ elfutils-0.131/libdw/dwarf_getscopevar.c
-@@ -93,7 +93,7 @@
- size_t match_file_len = match_file == NULL ? 0 : strlen (match_file);
- bool lastfile_matches = false;
- const char *lastfile = NULL;
-- inline bool file_matches (Dwarf_Files *files, size_t idx)
-+ __gnu_inline bool file_matches (Dwarf_Files *files, size_t idx)
- {
- if (idx >= files->nfiles)
- return false;
---- elfutils-0.131/libdw/libdw.h
-+++ elfutils-0.131/libdw/libdw.h
-@@ -633,6 +633,12 @@
-
- /* Inline optimizations. */
-+#if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__)
-+# define __gnu_inline inline __attribute__ ((__gnu_inline__))
-+#else
-+# define __gnu_inline inline
-+#endif
-+
- #ifdef __OPTIMIZE__
- /* Return attribute code of given attribute. */
- __libdw_extern_inline unsigned int
- dwarf_whatattr (Dwarf_Attribute *attr)
---- elfutils-0.131/libdw/libdw_visit_scopes.c
-+++ elfutils-0.131/libdw/libdw_visit_scopes.c
-@@ -109,7 +109,7 @@
- if (INTUSE(dwarf_child) (&root->die, &child.die) != 0)
- return -1;
-
-- inline int recurse (void)
-+ __gnu_inline int recurse (void)
- {
- return __libdw_visit_scopes (depth + 1, &child,
- previsit, postvisit, arg);
---- elfutils-0.131/libdwfl/argp-std.c
-+++ elfutils-0.131/libdwfl/argp-std.c
-@@ -106,7 +106,7 @@
- static error_t
- parse_opt (int key, char *arg, struct argp_state *state)
- {
-- inline void failure (Dwfl *dwfl, int errnum, const char *msg)
-+ __gnu_inline void failure (Dwfl *dwfl, int errnum, const char *msg)
- {
- if (errnum == -1)
- argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
-@@ -116,7 +116,7 @@
- if (dwfl != NULL)
- dwfl_end (dwfl);
- }
-- inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
-+ __gnu_inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
- {
- failure (dwfl, errnum, msg);
- return errnum == -1 ? EIO : errnum;
---- elfutils-0.131/libdwfl/dwfl_module_addrsym.c
-+++ elfutils-0.131/libdwfl/dwfl_module_addrsym.c
-@@ -59,7 +59,7 @@
-
- /* Return true iff we consider ADDR to lie in the same section as SYM. */
- GElf_Word addr_shndx = SHN_UNDEF;
-- inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
-+ __gnu_inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
- {
- /* For absolute symbols and the like, only match exactly. */
- if (shndx >= SHN_LORESERVE)
---- elfutils-0.131/libdwfl/dwfl_module_getsrc_file.c
-+++ elfutils-0.131/libdwfl/dwfl_module_getsrc_file.c
-@@ -79,15 +79,15 @@
- && cu != NULL
- && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
- {
-- inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
-+ __gnu_inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
- {
- return line->files->info[line->file].name;
- }
-- inline Dwarf_Line *dwfl_line (const Dwfl_Line *line)
-+ __gnu_inline Dwarf_Line *dwfl_line (const Dwfl_Line *line)
- {
- return &dwfl_linecu (line)->die.cu->lines->info[line->idx];
- }
-- inline const char *dwfl_line_file (const Dwfl_Line *line)
-+ __gnu_inline const char *dwfl_line_file (const Dwfl_Line *line)
- {
- return INTUSE(dwarf_line_file) (dwfl_line (line));
- }
---- elfutils-0.131/libdwfl/elf-from-memory.c
-+++ elfutils-0.131/libdwfl/elf-from-memory.c
-@@ -216,7 +216,7 @@
- bool found_base = false;
- switch (ehdr.e32.e_ident[EI_CLASS])
- {
-- inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
-+ __gnu_inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
- GElf_Xword filesz, GElf_Xword align)
- {
- GElf_Off segment_end = ((offset + filesz + align - 1) & -align);
-@@ -280,7 +280,7 @@
-
- switch (ehdr.e32.e_ident[EI_CLASS])
- {
-- inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
-+ __gnu_inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
- GElf_Xword filesz, GElf_Xword align)
- {
- GElf_Off start = offset & -align;
---- elfutils-0.131/libdwfl/linux-kernel-modules.c
-+++ elfutils-0.131/libdwfl/linux-kernel-modules.c
-@@ -541,7 +541,7 @@
- {
- Dwarf_Addr start;
- Dwarf_Addr end;
-- inline Dwfl_Module *report (void)
-+ __gnu_inline Dwfl_Module *report (void)
- {
- return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end);
- }
-@@ -628,7 +628,7 @@
- only '_' and one only using '-'. */
-
- char alternate_name[namelen + 1];
-- inline bool subst_name (char from, char to)
-+ __gnu_inline bool subst_name (char from, char to)
- {
- const char *n = memchr (module_name, from, namelen);
- if (n == NULL)
---- elfutils-0.131/libdwfl/linux-proc-maps.c
-+++ elfutils-0.131/libdwfl/linux-proc-maps.c
-@@ -134,7 +134,7 @@
- char *last_file = NULL;
- Dwarf_Addr low = 0, high = 0;
-
-- inline bool report (void)
-+ __gnu_inline bool report (void)
- {
- if (last_file != NULL)
- {
---- elfutils-0.131/src/ld.h
-+++ elfutils-0.131/src/ld.h
-@@ -1087,7 +1087,7 @@
-
- /* Checked whether the symbol is undefined and referenced from a DSO. */
- extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);
--extern inline bool
-+extern __gnu_inline bool
- linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
- {
- struct usedfiles *file = scninfo->fileinfo;
---- elfutils-0.131/src/readelf.c
-+++ elfutils-0.131/src/readelf.c
-@@ -5722,7 +5722,7 @@
- qsort (regs, maxreg + 1, sizeof regs[0], &compare_registers);
-
- /* Collect the unique sets and sort them. */
-- inline bool same_set (const struct register_info *a,
-+ __gnu_inline bool same_set (const struct register_info *a,
- const struct register_info *b)
- {
- return (a < &regs[maxnreg] && a->regloc != NULL
---- elfutils-0.131/src/strip.c
-+++ elfutils-0.131/src/strip.c
-@@ -1336,7 +1336,7 @@
- /* Update section headers when the data size has changed.
- We also update the SHT_NOBITS section in the debug
- file so that the section headers match in sh_size. */
-- inline void update_section_size (const Elf_Data *newdata)
-+ __gnu_inline void update_section_size (const Elf_Data *newdata)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
---- elfutils-0.131/src/unstrip.c
-+++ elfutils-0.131/src/unstrip.c
-@@ -389,7 +389,7 @@
- {
- Elf_Data *data = elf_getdata (outscn, NULL);
-
-- inline void adjust_reloc (GElf_Xword *info)
-+ __gnu_inline void adjust_reloc (GElf_Xword *info)
- {
- size_t ndx = GELF_R_SYM (*info);
- if (ndx != STN_UNDEF)
-@@ -1039,7 +1039,7 @@
- }
-
- bool fail = false;
-- inline void check_match (bool match, Elf_Scn *scn, const char *name)
-+ __gnu_inline void check_match (bool match, Elf_Scn *scn, const char *name)
- {
- if (!match)
- {
-@@ -1267,7 +1267,7 @@
- }
-
- /* Locate a matching unallocated section in SECTIONS. */
-- inline struct section *find_unalloc_section (const GElf_Shdr *shdr,
-+ __gnu_inline struct section *find_unalloc_section (const GElf_Shdr *shdr,
- const char *name)
- {
- size_t l = nalloc, u = stripped_shnum - 1;
-@@ -2182,7 +2182,7 @@
- handle_implicit_modules (const struct arg_info *info)
- {
- struct match_module_info mmi = { info->args, NULL, info->match_files };
-- inline ptrdiff_t next (ptrdiff_t offset)
-+ __gnu_inline ptrdiff_t next (ptrdiff_t offset)
- {
- return dwfl_getmodules (info->dwfl, &match_module, &mmi, offset);
- }
diff --git a/dev-libs/elfutils/files/elfutils-0.143-fix-fill_mmap-for-sections-past-the-section-headers.patch b/dev-libs/elfutils/files/elfutils-0.143-fix-fill_mmap-for-sections-past-the-section-headers.patch
deleted file mode 100644
index 2d613985e4fe..000000000000
--- a/dev-libs/elfutils/files/elfutils-0.143-fix-fill_mmap-for-sections-past-the-section-headers.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-http://bugs.gentoo.org/288977
-
-From 59869a0ec5f8f8bfcaea12fecd17053e3f2b1764 Mon Sep 17 00:00:00 2001
-From: Lubomir Rintel <lkundrak@v3.sk>
-Date: Fri, 23 Oct 2009 16:18:51 +0200
-Subject: [PATCH] Fix fill_mmap for sections past the section headers
-
-If fill_mmap() was run for a section that's past the shdr_end, but does
-not immediately follow the section headers the fill start would be
-determined incorrectly as shdr_end, which would wipe off contents of
-sections between shdr_end and current one.
-
-Issue was reported and triaged by Hugo Mildenberger and Peter Alfredsen.
----
- libelf/ChangeLog | 5 +++++
- libelf/elf32_updatefile.c | 7 +++++--
- 2 files changed, 10 insertions(+), 2 deletions(-)
-
---- a/libelf/elf32_updatefile.c 2009-10-23 21:33:06.000000000 +0200
-+++ b/libelf/elf32_updatefile.c 2009-10-23 21:39:38.000000000 +0200
-@@ -322,8 +322,11 @@
-
- if (last_position + written != scn_start + offset
- && shdr_end < scn_start + offset)
-- memset (shdr_end, __libelf_fill_byte,
-- scn_start + offset - shdr_end);
-+ {
-+ char *fill_start = MAX (shdr_end, scn_start);
-+ memset (fill_start, __libelf_fill_byte,
-+ scn_start + offset - fill_start);
-+ }
- }
-
- if (scn->data_list_rear != NULL)
diff --git a/dev-libs/elfutils/files/elfutils-0.144-sloppy-include.patch b/dev-libs/elfutils/files/elfutils-0.144-sloppy-include.patch
deleted file mode 100644
index 361af835290a..000000000000
--- a/dev-libs/elfutils/files/elfutils-0.144-sloppy-include.patch
+++ /dev/null
@@ -1,114 +0,0 @@
-From b337b1fd5f3b3410fe522a690ccee70bce8519ee Mon Sep 17 00:00:00 2001
-From: Roland McGrath <roland@redhat.com>
-Date: Fri, 15 Jan 2010 01:02:27 -0800
-Subject: [PATCH] Fix sloppy #include use, breaks with latest glibc.
-
----
- src/ChangeLog | 8 ++++++++
- src/ar.c | 3 ++-
- src/elflint.c | 1 +
- src/readelf.c | 1 +
- src/strip.c | 3 ++-
- src/unstrip.c | 3 ++-
- 6 files changed, 16 insertions(+), 3 deletions(-)
-
-diff --git a/src/ChangeLog b/src/ChangeLog
-index c4b5b05..ee1b733 100644
---- a/src/ChangeLog
-+++ b/src/ChangeLog
-@@ -1,3 +1,11 @@
-+2010-01-15 Roland McGrath <roland@redhat.com>
-+
-+ * ar.c: Include <sys/stat.h>.
-+ * elflint.c: Likewise.
-+ * readelf.c: Likewise.
-+ * strip.c: Likewise.
-+ * unstrip.c: Likewise
-+
- 2010-01-07 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ehdr): Handle PN_XNUM.
-diff --git a/src/ar.c b/src/ar.c
-index 5d7a6e7..149d116 100644
---- a/src/ar.c
-+++ b/src/ar.c
-@@ -1,5 +1,5 @@
- /* Create, modify, and extract from archives.
-- Copyright (C) 2005, 2007, 2009 Red Hat, Inc.
-+ Copyright (C) 2005-2010 Red Hat, Inc.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- Red Hat elfutils is free software; you can redistribute it and/or modify
-@@ -45,6 +45,7 @@
- #include <time.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <sys/stat.h>
- #include <sys/time.h>
-
- #include <system.h>
-diff --git a/src/elflint.c b/src/elflint.c
-index 63d8389..531122b 100644
---- a/src/elflint.c
-+++ b/src/elflint.c
-@@ -42,6 +42,7 @@
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
-+#include <sys/stat.h>
- #include <sys/param.h>
-
- #include <elf-knowledge.h>
-diff --git a/src/readelf.c b/src/readelf.c
-index 4464866..6ba259c 100644
---- a/src/readelf.c
-+++ b/src/readelf.c
-@@ -49,6 +49,7 @@
- #include <time.h>
- #include <unistd.h>
- #include <sys/param.h>
-+#include <sys/stat.h>
-
- #include <system.h>
- #include "../libelf/libelfP.h"
-diff --git a/src/strip.c b/src/strip.c
-index 32cf0d7..7b2b889 100644
---- a/src/strip.c
-+++ b/src/strip.c
-@@ -1,5 +1,5 @@
- /* Discard section not used at runtime from object files.
-- Copyright (C) 2000-2008, 2009 Red Hat, Inc.
-+ Copyright (C) 2000-2010 Red Hat, Inc.
- This file is part of Red Hat elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
-@@ -46,6 +46,7 @@
- #include <string.h>
- #include <unistd.h>
- #include <sys/param.h>
-+#include <sys/stat.h>
- #include <sys/time.h>
-
- #include <elf-knowledge.h>
-diff --git a/src/unstrip.c b/src/unstrip.c
-index 284607b..0984e6b 100644
---- a/src/unstrip.c
-+++ b/src/unstrip.c
-@@ -1,5 +1,5 @@
- /* Combine stripped files with separate symbols and debug information.
-- Copyright (C) 2007, 2009 Red Hat, Inc.
-+ Copyright (C) 2007-2010 Red Hat, Inc.
- This file is part of Red Hat elfutils.
- Written by Roland McGrath <roland@redhat.com>, 2007.
-
-@@ -52,6 +52,7 @@
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
-+#include <sys/stat.h>
-
- #include <gelf.h>
- #include <libebl.h>
---
-1.6.2.5
-