<p dir="ltr">I'm curious, as current elfutils packager, how I should play in this import?</p>
<p dir="ltr">Should this package be removed from package.git (but there is no PR for it)?</p>
<p dir="ltr">Or will it be periodically synchronized with packages.git?</p>
<p dir="ltr">Also, as I'm not a core developer, maybe it would be better to a core developer to take its maintainance.</p>
<p dir="ltr">Regards,</p>
<br><div class="gmail_quote">Em seg, 18 de mai de 2015 20:45, Mathieu Olivari <<a href="mailto:mathieu@codeaurora.org">mathieu@codeaurora.org</a>> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">elfutils is required by perf. So we'll move this package from<br>
packages.git and make it part of the core distribution.<br>
<br>
Signed-off-by: Mathieu Olivari <<a href="mailto:mathieu@codeaurora.org" target="_blank">mathieu@codeaurora.org</a>><br>
---<br>
package/libs/elfutils/Makefile | 97 +<br>
.../patches/001-elfutils-portability.patch | 1871 ++++++++++++++++++++<br>
.../elfutils/patches/002-argp_standalone.patch | 14 +<br>
.../libs/elfutils/patches/003-libint-stub.patch | 49 +<br>
.../elfutils/patches/004-maybe-uninitialized.patch | 11 +<br>
package/libs/elfutils/patches/004-memcpy_def.patch | 14 +<br>
.../elfutils/patches/005-build_only_libs.patch | 24 +<br>
package/libs/elfutils/patches/006-libdw_LIBS.patch | 11 +<br>
.../libs/elfutils/patches/100-musl-compat.patch | 788 +++++++++<br>
package/libs/elfutils/patches/101-no-fts.patch | 109 ++<br>
10 files changed, 2988 insertions(+)<br>
create mode 100644 package/libs/elfutils/Makefile<br>
create mode 100644 package/libs/elfutils/patches/001-elfutils-portability.patch<br>
create mode 100644 package/libs/elfutils/patches/002-argp_standalone.patch<br>
create mode 100644 package/libs/elfutils/patches/003-libint-stub.patch<br>
create mode 100644 package/libs/elfutils/patches/004-maybe-uninitialized.patch<br>
create mode 100644 package/libs/elfutils/patches/004-memcpy_def.patch<br>
create mode 100644 package/libs/elfutils/patches/005-build_only_libs.patch<br>
create mode 100644 package/libs/elfutils/patches/006-libdw_LIBS.patch<br>
create mode 100644 package/libs/elfutils/patches/100-musl-compat.patch<br>
create mode 100644 package/libs/elfutils/patches/101-no-fts.patch<br>
<br>
diff --git a/package/libs/elfutils/Makefile b/package/libs/elfutils/Makefile<br>
new file mode 100644<br>
index 0000000..d3e1552<br>
--- /dev/null<br>
+++ b/package/libs/elfutils/Makefile<br>
@@ -0,0 +1,97 @@<br>
+#<br>
+# Copyright (C) 2010-2014 OpenWrt.org<br>
+#<br>
+# This is free software, licensed under the GNU General Public License v2.<br>
+# See /LICENSE for more information.<br>
+#<br>
+include $(TOPDIR)/<a href="http://rules.mk" target="_blank">rules.mk</a><br>
+<br>
+PKG_NAME:=elfutils<br>
+PKG_VERSION:=0.161<br>
+PKG_RELEASE:=1<br>
+<br>
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2<br>
+PKG_SOURCE_URL:=<a href="http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)+PKG_MD5SUM:=e1b9847c9a6a1ad340de8d47a863ec52+PKG_MAINTAINER:=Luiz" target="_blank">http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)<br>
+PKG_MD5SUM:=e1b9847c9a6a1ad340de8d47a863ec52<br>
+PKG_MAINTAINER:=Luiz</a> Angelo Daros de Luca <<a href="mailto:luizluca@gmail.com" target="_blank">luizluca@gmail.com</a>><br>
+PKG_LICENSE:=GPL-3.0+<br>
+PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3<br>
+<br>
+PKG_INSTALL:=1<br>
+PKG_USE_MIPS16:=0<br>
+<br>
+PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone<br>
+<br>
+include $(INCLUDE_DIR)/<a href="http://package.mk" target="_blank">package.mk</a><br>
+include $(INCLUDE_DIR)/<a href="http://nls.mk" target="_blank">nls.mk</a><br>
+<br>
+define Package/elfutils/Default<br>
+ SECTION:=libs<br>
+ CATEGORY:=Libraries<br>
+ DEPENDS:=$(INTL_DEPENDS)<br>
+ TITLE:=ELF manipulation libraries<br>
+ URL:=<a href="https://fedorahosted.org/elfutils/" target="_blank">https://fedorahosted.org/elfutils/</a><br>
+endef<br>
+<br>
+define Package/libasm<br>
+ $(call Package/elfutils/Default)<br>
+ TITLE+= (libasm)<br>
+ DEPENDS:=libelf1<br>
+endef<br>
+<br>
+define Package/libdw<br>
+ $(call Package/elfutils/Default)<br>
+ DEPENDS:=libelf1 +zlib +libbz2<br>
+ TITLE+= (libdw)<br>
+endef<br>
+<br>
+define Package/libelf1<br>
+ $(call Package/elfutils/Default)<br>
+ TITLE+= (libelf)<br>
+endef<br>
+<br>
+ifeq ($(CONFIG_BUILD_NLS),y)<br>
+TARGET_LDFLAGS += "-lintl"<br>
+endif<br>
+<br>
+ifdef CONFIG_USE_UCLIBC<br>
+CONFIGURE_VARS += \<br>
+ LIBS="-largp"<br>
+endif<br>
+<br>
+ifdef CONFIG_USE_MUSL<br>
+CONFIGURE_VARS += \<br>
+ LIBS="-largp"<br>
+endif<br>
+<br>
+CONFIGURE_ARGS += \<br>
+ --disable-werror \<br>
+ --without-lzma<br>
+<br>
+define Build/InstallDev<br>
+ $(INSTALL_DIR) $(1)/usr/include<br>
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/<br>
+ $(INSTALL_DIR) $(1)/usr/lib<br>
+ $(CP) $(PKG_BUILD_DIR)/libasm/libasm.{a,so*} $(1)/usr/lib/<br>
+ $(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/<br>
+ $(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/<br>
+endef<br>
+<br>
+define Package/libasm/install<br>
+ $(INSTALL_DIR) $(1)/usr/lib<br>
+ $(CP) $(PKG_BUILD_DIR)/libasm/libasm.so* $(1)/usr/lib/<br>
+endef<br>
+<br>
+define Package/libdw/install<br>
+ $(INSTALL_DIR) $(1)/usr/lib<br>
+ $(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/<br>
+endef<br>
+<br>
+define Package/libelf1/install<br>
+ $(INSTALL_DIR) $(1)/usr/lib<br>
+ $(CP) $(PKG_BUILD_DIR)/libelf/libelf.so* $(1)/usr/lib/<br>
+endef<br>
+<br>
+$(eval $(call BuildPackage,libasm))<br>
+$(eval $(call BuildPackage,libdw))<br>
+$(eval $(call BuildPackage,libelf1))<br>
diff --git a/package/libs/elfutils/patches/001-elfutils-portability.patch b/package/libs/elfutils/patches/001-elfutils-portability.patch<br>
new file mode 100644<br>
index 0000000..7539f8b<br>
--- /dev/null<br>
+++ b/package/libs/elfutils/patches/001-elfutils-portability.patch<br>
@@ -0,0 +1,1871 @@<br>
+--- elfutils/backends/ChangeLog<br>
++++ elfutils/backends/ChangeLog<br>
+@@ -433,6 +433,10 @@<br>
+ * ppc_attrs.c (ppc_check_object_attribute): Handle tag<br>
+ GNU_Power_ABI_Struct_Return.<br>
+<br>
++2009-01-23 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (libebl_%.so): Use $(LD_AS_NEEDED).<br>
++<br>
+ 2008-10-04 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * i386_reloc.def: Fix entries for TLS_GOTDESC, TLS_DESC_CALL, and<br>
+@@ -760,6 +764,11 @@<br>
+ * sparc_init.c: Likewise.<br>
+ * x86_64_init.c: Likewise.<br>
+<br>
++2005-11-22 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (LD_AS_NEEDED): New variable, substituted by configure.<br>
++ (libebl_%.so rule): Use it in place of -Wl,--as-needed.<br>
++<br>
+ 2005-11-19 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * ppc64_reloc.def: REL30 -> ADDR30.<br>
+@@ -782,6 +791,9 @@<br>
+ * Makefile.am (uninstall): Don't try to remove $(pkgincludedir).<br>
+ (CLEANFILES): Add libebl_$(m).so.<br>
+<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
+ * ppc_reloc.def: Update bits per Alan Modra <<a href="mailto:amodra@bigpond.net.au" target="_blank">amodra@bigpond.net.au</a>>.<br>
+ * ppc64_reloc.def: Likewise.<br>
+<br>
+--- elfutils/backends/Makefile.am<br>
++++ elfutils/backends/Makefile.am<br>
+@@ -119,7 +119,7 @@ libebl_%.so libebl_%.map: libebl_%_pic.a<br>
+ $(LINK) -shared -o $(@:.map=.so) \<br>
+ -Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \<br>
+ -Wl,--version-script,$(@:.so=.map) \<br>
+- -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw)<br>
++ -Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw)<br>
+ @$(textrel_check)<br>
+<br>
+ libebl_i386.so: $(cpu_i386)<br>
+--- elfutils/backends/Makefile.in<br>
++++ elfutils/backends/Makefile.in<br>
+@@ -83,6 +83,7 @@ host_triplet = @host@<br>
+ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a> $(srcdir)/Makefile.in \<br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(noinst_HEADERS) ChangeLog<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
+ subdir = backends<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+ am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \<br>
+@@ -285,6 +286,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -316,6 +318,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = @VERSION@<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -378,11 +381,11 @@ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \<br>
+ -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \<br>
+ -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \<br>
+- $(if $($(*F)_no_Werror),,-Werror) \<br>
+- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \<br>
+- $($(*F)_CFLAGS)<br>
+-<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
++ $($(*F)_no_Werror),,-Werror) $(if \<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1)<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda $(foreach m,$(modules), libebl_$(m).map \<br>
+ libebl_$(m).so $(am_libebl_$(m)_pic_a_OBJECTS))<br>
+@@ -888,7 +891,7 @@ libebl_%.so libebl_%.map: libebl_%_pic.a<br>
+ $(LINK) -shared -o $(@:.map=.so) \<br>
+ -Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \<br>
+ -Wl,--version-script,$(@:.so=.map) \<br>
+- -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw)<br>
++ -Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw)<br>
+ @$(textrel_check)<br>
+<br>
+ libebl_i386.so: $(cpu_i386)<br>
+--- elfutils/ChangeLog<br>
++++ elfutils/ChangeLog<br>
+@@ -187,6 +187,8 @@<br>
+<br>
+ 2012-01-24 Mark Wielaard <<a href="mailto:mjw@redhat.com" target="_blank">mjw@redhat.com</a>><br>
+<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Wrap AC_COMPILE_IFELSE sources in AC_LANG_SOURCE.<br>
++<br>
+ * COPYING: Fix address. Updated version from gnulib.<br>
+<br>
+ 2012-01-23 Mark Wielaard <<a href="mailto:mjw@redhat.com" target="_blank">mjw@redhat.com</a>><br>
+@@ -205,6 +207,9 @@<br>
+<br>
+ 2011-10-08 Mike Frysinger <<a href="mailto:vapier@gentoo.org" target="_blank">vapier@gentoo.org</a>><br>
+<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a> (--disable-werror): Handle it, controlling BUILD_WERROR<br>
++ automake option.<br>
++<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Fix use of AC_ARG_ENABLE to handle $enableval correctly.<br>
+<br>
+ 2011-10-02 Ulrich Drepper <<a href="mailto:drepper@gmail.com" target="_blank">drepper@gmail.com</a>><br>
+@@ -226,6 +231,10 @@<br>
+<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a> (LOCALEDIR, DATADIRNAME): Removed.<br>
+<br>
++2009-11-22 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Use sed and expr instead of modern bash extensions.<br>
++<br>
+ 2009-09-21 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Update for more modern autoconf.<br>
+@@ -234,6 +243,10 @@<br>
+<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a> (zip_LIBS): Check for liblzma too.<br>
+<br>
++2009-08-17 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Check for -fgnu89-inline; add it to WEXTRA if it works.<br>
++<br>
+ 2009-04-19 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a> (eu_version): Round down here, not in version.h macros.<br>
+@@ -245,6 +258,8 @@<br>
+<br>
+ 2009-01-23 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Check for __builtin_popcount.<br>
++<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a> (zlib check): Check for gzdirect, need zlib >= 1.2.2.3.<br>
+<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a> (__thread check): Use AC_LINK_IFELSE, in case of<br>
+@@ -325,6 +340,10 @@<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Add dummy automake conditional to get dependencies<br>
+ for non-generic linker right. See src/Makefile.am.<br>
+<br>
++2005-11-22 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Check for --as-needed linker option.<br>
++<br>
+ 2005-11-18 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.<br>
+@@ -372,6 +391,17 @@<br>
+ * Makefile.am (all_SUBDIRS): Add libdwfl.<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Write libdwfl/Makefile.<br>
+<br>
++2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a> (WEXTRA): Check for -Wextra and set this substitution.<br>
++<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Check for struct stat st_?tim members.<br>
++ * src/strip.c (process_file): Use st_?time if st_?tim are not there.<br>
++<br>
++ * <a href="http://configure.ac" target="_blank">configure.ac</a>: Check for futimes function.<br>
++ * src/strip.c (handle_elf) [! HAVE_FUTIMES]: Use utimes instead.<br>
++ (handle_ar) [! HAVE_FUTIMES]: Likewise.<br>
++<br>
+ 2005-05-19 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * <a href="http://configure.ac" target="_blank">configure.ac</a> [AH_BOTTOM] (INTDECL, _INTDECL): New macros.<br>
+--- elfutils/config/ChangeLog<br>
++++ elfutils/config/ChangeLog<br>
+@@ -71,6 +71,10 @@<br>
+<br>
+ * known-dwarf.awk: Use gawk.<br>
+<br>
++2011-10-08 Mike Frysinger <<a href="mailto:vapier@gentoo.org" target="_blank">vapier@gentoo.org</a>><br>
++<br>
++ * <a href="http://eu.am" target="_blank">eu.am</a> [BUILD_WERROR]: Conditionalize -Werror use on this.<br>
++<br>
+ 2010-07-02 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * <a href="http://elfutils.spec.in" target="_blank">elfutils.spec.in</a>: Add more BuildRequires.<br>
+--- elfutils/config/<a href="http://eu.am" target="_blank">eu.am</a><br>
++++ elfutils/config/<a href="http://eu.am" target="_blank">eu.am</a><br>
+@@ -1,6 +1,6 @@<br>
+ ## Common automake fragments for elfutils subdirectory makefiles.<br>
+ ##<br>
+-## Copyright (C) 2010, 2014 Red Hat, Inc.<br>
++## Copyright (C) 2010-2011, 2014 Red Hat, Inc.<br>
+ ##<br>
+ ## This file is part of elfutils.<br>
+ ##<br>
+@@ -29,13 +29,21 @@<br>
+ ## not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
+ ##<br>
+<br>
++WEXTRA = @WEXTRA@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
++<br>
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow \<br>
+ $(if $($(*F)_no_Werror),,-Werror) \<br>
+- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \<br>
++ $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \<br>
++ $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \<br>
+ $($(*F)_CFLAGS)<br>
+<br>
++if BUILD_WERROR<br>
++AM_CFLAGS += $(if $($(*F)_no_Werror),,-Werror)<br>
++endif<br>
++<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+<br>
+ %.os: %.c %.o<br>
+--- elfutils/config/Makefile.in<br>
++++ elfutils/config/Makefile.in<br>
+@@ -147,6 +147,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -178,6 +179,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = @VERSION@<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+--- elfutils/<a href="http://config.h.in" target="_blank">config.h.in</a><br>
++++ elfutils/<a href="http://config.h.in" target="_blank">config.h.in</a><br>
+@@ -3,6 +3,9 @@<br>
+ /* Should ar and ranlib use -D behavior by default? */<br>
+ #undef DEFAULT_AR_DETERMINISTIC<br>
+<br>
++/* Have __builtin_popcount. */<br>
++#undef HAVE_BUILTIN_POPCOUNT<br>
++<br>
+ /* Define to 1 if you have the <inttypes.h> header file. */<br>
+ #undef HAVE_INTTYPES_H<br>
+<br>
+@@ -102,4 +105,7 @@<br>
+ /* Define for large files, on AIX-style hosts. */<br>
+ #undef _LARGE_FILES<br>
+<br>
++/* Stubbed out if missing compiler support. */<br>
++#undef __thread<br>
++<br>
+ #include <eu-config.h><br>
+--- elfutils/configure<br>
++++ elfutils/configure<br>
+@@ -663,6 +663,8 @@ ZLIB_TRUE<br>
+ LIBEBL_SUBDIR<br>
+ TESTS_RPATH_FALSE<br>
+ TESTS_RPATH_TRUE<br>
++BUILD_WERROR_FALSE<br>
++BUILD_WERROR_TRUE<br>
+ BUILD_STATIC_FALSE<br>
+ BUILD_STATIC_TRUE<br>
+ USE_VALGRIND_FALSE<br>
+@@ -678,6 +680,8 @@ NEVER_TRUE<br>
+ base_cpu<br>
+ NATIVE_LD_FALSE<br>
+ NATIVE_LD_TRUE<br>
++LD_AS_NEEDED<br>
++WEXTRA<br>
+ NM<br>
+ READELF<br>
+ ac_ct_AR<br>
+@@ -798,6 +802,7 @@ enable_debugpred<br>
+ enable_gprof<br>
+ enable_gcov<br>
+ enable_valgrind<br>
++enable_werror<br>
+ enable_tests_rpath<br>
+ enable_libebl_subdir<br>
+ with_zlib<br>
+@@ -1455,6 +1460,7 @@ Optional Features:<br>
+ --enable-gprof build binaries with gprof support<br>
+ --enable-gcov build binaries with gcov support<br>
+ --enable-valgrind run all tests under valgrind<br>
++ --disable-werror do not build with -Werror<br>
+ --enable-tests-rpath build $ORIGIN-using rpath into tests<br>
+ --enable-libebl-subdir=DIR<br>
+ install libebl_CPU modules in $(libdir)/DIR<br>
+@@ -4843,6 +4849,130 @@ if test "x$ac_cv_c99" != xyes; then :<br>
+ as_fn_error $? "gcc with C99 support required" "$LINENO" 5<br>
+ fi<br>
+<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra option to $CC" >&5<br>
++$as_echo_n "checking for -Wextra option to $CC... " >&6; }<br>
++if ${ac_cv_cc_wextra+:} false; then :<br>
++ $as_echo_n "(cached) " >&6<br>
++else<br>
++ old_CFLAGS="$CFLAGS"<br>
++CFLAGS="$CFLAGS -Wextra"<br>
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext<br>
++/* end confdefs.h. */<br>
++void foo (void) { }<br>
++_ACEOF<br>
++if ac_fn_c_try_compile "$LINENO"; then :<br>
++ ac_cv_cc_wextra=yes<br>
++else<br>
++ ac_cv_cc_wextra=no<br>
++fi<br>
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext<br>
++CFLAGS="$old_CFLAGS"<br>
++fi<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_wextra" >&5<br>
++$as_echo "$ac_cv_cc_wextra" >&6; }<br>
++<br>
++if test "x$ac_cv_cc_wextra" = xyes; then :<br>
++ WEXTRA=-Wextra<br>
++else<br>
++ WEXTRA=-W<br>
++fi<br>
++<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline option to $CC" >&5<br>
++$as_echo_n "checking for -fgnu89-inline option to $CC... " >&6; }<br>
++if ${ac_cv_cc_gnu89_inline+:} false; then :<br>
++ $as_echo_n "(cached) " >&6<br>
++else<br>
++ old_CFLAGS="$CFLAGS"<br>
++CFLAGS="$CFLAGS -fgnu89-inline -Werror"<br>
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext<br>
++/* end confdefs.h. */<br>
++<br>
++void foo (void)<br>
++{<br>
++ inline void bar (void) {}<br>
++ bar ();<br>
++}<br>
++extern inline void baz (void) {}<br>
++<br>
++_ACEOF<br>
++if ac_fn_c_try_compile "$LINENO"; then :<br>
++ ac_cv_cc_gnu89_inline=yes<br>
++else<br>
++ ac_cv_cc_gnu89_inline=no<br>
++fi<br>
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext<br>
++CFLAGS="$old_CFLAGS"<br>
++fi<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_gnu89_inline" >&5<br>
++$as_echo "$ac_cv_cc_gnu89_inline" >&6; }<br>
++if test "x$ac_cv_cc_gnu89_inline" = xyes; then :<br>
++ WEXTRA="${WEXTRA:+$WEXTRA }-fgnu89-inline"<br>
++fi<br>
++<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed linker option" >&5<br>
++$as_echo_n "checking for --as-needed linker option... " >&6; }<br>
++if ${ac_cv_as_needed+:} false; then :<br>
++ $as_echo_n "(cached) " >&6<br>
++else<br>
++ cat > conftest.c <<EOF<br>
++int main (void) { return 0; }<br>
++EOF<br>
++if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS<br>
++ -fPIC -shared -o conftest.so conftest.c<br>
++ -Wl,--as-needed 1>&5'<br>
++ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5<br>
++ (eval $ac_try) 2>&5<br>
++ ac_status=$?<br>
++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5<br>
++ test $ac_status = 0; }; }<br>
++then<br>
++ ac_cv_as_needed=yes<br>
++else<br>
++ ac_cv_as_needed=no<br>
++fi<br>
++rm -f conftest*<br>
++fi<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_as_needed" >&5<br>
++$as_echo "$ac_cv_as_needed" >&6; }<br>
++if test "x$ac_cv_as_needed" = xyes; then :<br>
++ LD_AS_NEEDED=-Wl,--as-needed<br>
++else<br>
++ LD_AS_NEEDED=<br>
++fi<br>
++<br>
++<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5<br>
++$as_echo_n "checking for __builtin_popcount... " >&6; }<br>
++if ${ac_cv_popcount+:} false; then :<br>
++ $as_echo_n "(cached) " >&6<br>
++else<br>
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext<br>
++/* end confdefs.h. */<br>
++<br>
++int<br>
++main ()<br>
++{<br>
++exit (__builtin_popcount (127));<br>
++ ;<br>
++ return 0;<br>
++}<br>
++_ACEOF<br>
++if ac_fn_c_try_link "$LINENO"; then :<br>
++ ac_cv_popcount=yes<br>
++else<br>
++ ac_cv_popcount=no<br>
++fi<br>
++rm -f core conftest.err conftest.$ac_objext \<br>
++ conftest$ac_exeext conftest.$ac_ext<br>
++fi<br>
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_popcount" >&5<br>
++$as_echo "$ac_cv_popcount" >&6; }<br>
++if test "x$ac_cv_popcount" = xyes; then :<br>
++<br>
++$as_echo "#define HAVE_BUILTIN_POPCOUNT 1" >>confdefs.h<br>
++<br>
++fi<br>
++<br>
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5<br>
+ $as_echo_n "checking for __thread support... " >&6; }<br>
+ if ${ac_cv_tls+:} false; then :<br>
+@@ -4879,7 +5009,13 @@ fi<br>
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5<br>
+ $as_echo "$ac_cv_tls" >&6; }<br>
+ if test "x$ac_cv_tls" != xyes; then :<br>
+- as_fn_error $? "__thread support required" "$LINENO" 5<br>
++ if test "$use_locks" = yes; then :<br>
++ as_fn_error $? "--enable-thread-safety requires __thread support" "$LINENO" 5<br>
++else<br>
++<br>
++$as_echo "#define __thread /* empty: no multi-thread support */" >>confdefs.h<br>
++<br>
++fi<br>
+ fi<br>
+<br>
+ # Check whether --enable-largefile was given.<br>
+@@ -5246,6 +5382,22 @@ else<br>
+ fi<br>
+<br>
+<br>
++# Check whether --enable-werror was given.<br>
++if test "${enable_werror+set}" = set; then :<br>
++ enableval=$enable_werror; enable_werror=$enableval<br>
++else<br>
++ enable_werror=yes<br>
++fi<br>
++<br>
++ if test "$enable_werror" = yes; then<br>
++ BUILD_WERROR_TRUE=<br>
++ BUILD_WERROR_FALSE='#'<br>
++else<br>
++ BUILD_WERROR_TRUE='#'<br>
++ BUILD_WERROR_FALSE=<br>
++fi<br>
++<br>
++<br>
+ # Check whether --enable-tests-rpath was given.<br>
+ if test "${enable_tests_rpath+set}" = set; then :<br>
+ enableval=$enable_tests_rpath; tests_use_rpath=$enableval<br>
+@@ -5983,7 +6135,7 @@ case "$eu_version" in<br>
+ esac<br>
+<br>
+ # Round up to the next release API (x.y) version.<br>
+-eu_version=$(( (eu_version + 999) / 1000 ))<br>
++eu_version=`expr \( $eu_version + 999 \) / 1000`<br>
+<br>
+ ac_ext=c<br>
+ ac_cpp='$CPP $CPPFLAGS'<br>
+@@ -6729,6 +6881,10 @@ if test -z "${BUILD_STATIC_TRUE}" && tes<br>
+ as_fn_error $? "conditional \"BUILD_STATIC\" was never defined.<br>
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5<br>
+ fi<br>
++if test -z "${BUILD_WERROR_TRUE}" && test -z "${BUILD_WERROR_FALSE}"; then<br>
++ as_fn_error $? "conditional \"BUILD_WERROR\" was never defined.<br>
++Usually this means the macro was only invoked conditionally." "$LINENO" 5<br>
++fi<br>
+ if test -z "${TESTS_RPATH_TRUE}" && test -z "${TESTS_RPATH_FALSE}"; then<br>
+ as_fn_error $? "conditional \"TESTS_RPATH\" was never defined.<br>
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5<br>
+--- elfutils/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
++++ elfutils/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+@@ -89,6 +89,54 @@ CFLAGS="$old_CFLAGS"])<br>
+ AS_IF([test "x$ac_cv_c99" != xyes],<br>
+ AC_MSG_ERROR([gcc with C99 support required]))<br>
+<br>
++AC_CACHE_CHECK([for -Wextra option to $CC], ac_cv_cc_wextra, [dnl<br>
++old_CFLAGS="$CFLAGS"<br>
++CFLAGS="$CFLAGS -Wextra"<br>
++AC_COMPILE_IFELSE([AC_LANG_SOURCE([void foo (void) { }])],<br>
++ ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no)<br>
++CFLAGS="$old_CFLAGS"])<br>
++AC_SUBST(WEXTRA)<br>
++AS_IF([test "x$ac_cv_cc_wextra" = xyes], [WEXTRA=-Wextra], [WEXTRA=-W])<br>
++<br>
++AC_CACHE_CHECK([for -fgnu89-inline option to $CC], ac_cv_cc_gnu89_inline, [dnl<br>
++old_CFLAGS="$CFLAGS"<br>
++CFLAGS="$CFLAGS -fgnu89-inline -Werror"<br>
++AC_COMPILE_IFELSE([AC_LANG_SOURCE([<br>
++void foo (void)<br>
++{<br>
++ inline void bar (void) {}<br>
++ bar ();<br>
++}<br>
++extern inline void baz (void) {}<br>
++])], ac_cv_cc_gnu89_inline=yes, ac_cv_cc_gnu89_inline=no)<br>
++CFLAGS="$old_CFLAGS"])<br>
++AS_IF([test "x$ac_cv_cc_gnu89_inline" = xyes],<br>
++ [WEXTRA="${WEXTRA:+$WEXTRA }-fgnu89-inline"])<br>
++<br>
++AC_CACHE_CHECK([for --as-needed linker option],<br>
++ ac_cv_as_needed, [dnl<br>
++cat > conftest.c <<EOF<br>
++int main (void) { return 0; }<br>
++EOF<br>
++if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS<br>
++ -fPIC -shared -o conftest.so conftest.c<br>
++ -Wl,--as-needed 1>&AS_MESSAGE_LOG_FD])<br>
++then<br>
++ ac_cv_as_needed=yes<br>
++else<br>
++ ac_cv_as_needed=no<br>
++fi<br>
++rm -f conftest*])<br>
++AS_IF([test "x$ac_cv_as_needed" = xyes],<br>
++ [LD_AS_NEEDED=-Wl,--as-needed], [LD_AS_NEEDED=])<br>
++AC_SUBST(LD_AS_NEEDED)<br>
++<br>
++AC_CACHE_CHECK([for __builtin_popcount], ac_cv_popcount, [dnl<br>
++AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[exit (__builtin_popcount (127));]])],<br>
++ ac_cv_popcount=yes, ac_cv_popcount=no)])<br>
++AS_IF([test "x$ac_cv_popcount" = xyes],<br>
++ [AC_DEFINE([HAVE_BUILTIN_POPCOUNT], [1], [Have __builtin_popcount.])])<br>
++<br>
+ AC_CACHE_CHECK([for __thread support], ac_cv_tls, [dnl<br>
+ # Use the same flags that we use for our DSOs, so the test is representative.<br>
+ # Some old compiler/linker/libc combinations fail some ways and not others.<br>
+@@ -104,7 +152,10 @@ static __thread int a; int foo (int b) {<br>
+ CFLAGS="$save_CFLAGS"<br>
+ LDFLAGS="$save_LDFLAGS"])<br>
+ AS_IF([test "x$ac_cv_tls" != xyes],<br>
+- AC_MSG_ERROR([__thread support required]))<br>
++ [AS_IF([test "$use_locks" = yes],<br>
++ [AC_MSG_ERROR([--enable-thread-safety requires __thread support])],<br>
++ [AC_DEFINE([__thread], [/* empty: no multi-thread support */],<br>
++ [Stubbed out if missing compiler support.])])])<br>
+<br>
+ dnl This test must come as early as possible after the compiler configuration<br>
+ dnl tests, because the choice of the file model can (in principle) affect<br>
+@@ -183,6 +234,11 @@ AM_CONDITIONAL(USE_VALGRIND, test "$use_<br>
+ AM_CONDITIONAL(BUILD_STATIC, [dnl<br>
+ test "$use_gprof" = yes -o "$use_gcov" = yes])<br>
+<br>
++AC_ARG_ENABLE([werror],<br>
++AS_HELP_STRING([--disable-werror],[do not build with -Werror]),<br>
++ [enable_werror=$enableval], [enable_werror=yes])<br>
++AM_CONDITIONAL(BUILD_WERROR, test "$enable_werror" = yes)<br>
++<br>
+ AC_ARG_ENABLE([tests-rpath],<br>
+ AS_HELP_STRING([--enable-tests-rpath],[build $ORIGIN-using rpath into tests]),<br>
+ [tests_use_rpath=$enableval], [tests_use_rpath=no])<br>
+@@ -302,7 +358,7 @@ case "$eu_version" in<br>
+ esac<br>
+<br>
+ # Round up to the next release API (x.y) version.<br>
+-eu_version=$(( (eu_version + 999) / 1000 ))<br>
++eu_version=`expr \( $eu_version + 999 \) / 1000`<br>
+<br>
+ AC_CHECK_SIZEOF(long)<br>
+<br>
+--- elfutils/lib/ChangeLog<br>
++++ elfutils/lib/ChangeLog<br>
+@@ -65,6 +65,9 @@<br>
+<br>
+ 2009-01-23 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
++ * eu-config.h [! HAVE_BUILTIN_POPCOUNT]<br>
++ (__builtin_popcount): New inline function.<br>
++<br>
+ * eu-config.h: Add multiple inclusion protection.<br>
+<br>
+ 2009-01-17 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+@@ -121,6 +124,11 @@<br>
+ * Makefile.am (libeu_a_SOURCES): Add it.<br>
+ * system.h: Declare crc32_file.<br>
+<br>
++2005-02-07 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
+ 2005-04-30 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * Makefile.am: Use -ffunction-sections for xmalloc.c.<br>
+--- elfutils/lib/eu-config.h<br>
++++ elfutils/lib/eu-config.h<br>
+@@ -162,6 +162,17 @@ asm (".section predict_data, \"aw\"; .pr<br>
+ /* This macro is used by the tests conditionalize for standalone building. */<br>
+ #define ELFUTILS_HEADER(name) <lib##name.h><br>
+<br>
++#ifndef HAVE_BUILTIN_POPCOUNT<br>
++# define __builtin_popcount hakmem_popcount<br>
++static inline unsigned int __attribute__ ((unused))<br>
++hakmem_popcount (unsigned int x)<br>
++{<br>
++ /* HAKMEM 169 */<br>
++ unsigned int n = x - ((x >> 1) & 033333333333) - ((x >> 2) & 011111111111);<br>
++ return ((n + (n >> 3)) & 030707070707) % 63;<br>
++}<br>
++#endif /* HAVE_BUILTIN_POPCOUNT */<br>
++<br>
+<br>
+ #ifdef SHARED<br>
+ # define OLD_VERSION(name, version) \<br>
+--- elfutils/lib/Makefile.in<br>
++++ elfutils/lib/Makefile.in<br>
+@@ -82,6 +82,7 @@ host_triplet = @host@<br>
+ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a> $(srcdir)/Makefile.in \<br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(noinst_HEADERS) ChangeLog<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
+ subdir = lib<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+ am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \<br>
+@@ -197,6 +198,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -228,6 +230,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = @VERSION@<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -289,9 +292,11 @@ top_srcdir = @top_srcdir@<br>
+ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \<br>
+ -I$(srcdir)/../libelf<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
+ $($(*F)_no_Werror),,-Werror) $(if \<br>
+- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1) -fpic<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda<br>
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"<br>
+--- elfutils/libasm/ChangeLog<br>
++++ elfutils/libasm/ChangeLog<br>
+@@ -87,6 +87,11 @@<br>
+ * asm_error.c: Add new error ASM_E_IOERROR.<br>
+ * libasmP.h: Add ASM_E_IOERROR definition.<br>
+<br>
++2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
+ 2005-02-15 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * Makefile.am (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.<br>
+--- elfutils/libasm/Makefile.in<br>
++++ elfutils/libasm/Makefile.in<br>
+@@ -83,8 +83,9 @@ host_triplet = @host@<br>
+ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a> $(srcdir)/Makefile.in \<br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
+ noinst_PROGRAMS = $(am__EXEEXT_1)<br>
+-@USE_LOCKS_TRUE@am__append_1 = -lpthread<br>
++@USE_LOCKS_TRUE@am__append_2 = -lpthread<br>
+ subdir = libasm<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+ am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \<br>
+@@ -248,6 +249,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -279,6 +281,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = 1<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -341,11 +344,11 @@ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \<br>
+ -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \<br>
+ -I$(top_srcdir)/libdw<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \<br>
+- $(if $($(*F)_no_Werror),,-Werror) \<br>
+- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \<br>
+- $($(*F)_CFLAGS)<br>
+-<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
++ $($(*F)_no_Werror),,-Werror) $(if \<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1)<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda $(am_libasm_pic_a_OBJECTS) \<br>
+ libasm.so.$(VERSION)<br>
+@@ -373,7 +376,7 @@ libasm_a_SOURCES = asm_begin.c asm_abort<br>
+<br>
+ libasm_pic_a_SOURCES =<br>
+ am_libasm_pic_a_OBJECTS = $(libasm_a_SOURCES:.c=.os)<br>
+-libasm_so_LDLIBS = $(am__append_1)<br>
++libasm_so_LDLIBS = $(am__append_2)<br>
+ libasm_so_SOURCES =<br>
+ noinst_HEADERS = libasmP.h symbolhash.h<br>
+ EXTRA_DIST = libasm.map<br>
+--- elfutils/libcpu/ChangeLog<br>
++++ elfutils/libcpu/ChangeLog<br>
+@@ -51,6 +51,9 @@<br>
+<br>
+ 2009-01-23 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
++ * i386_disasm.c (i386_disasm): Add abort after assert-constant for old<br>
++ compilers that don't realize it's noreturn.<br>
++<br>
+ * Makefile.am (i386_parse_CFLAGS): Use quotes around command<br>
+ substitution that can produce leading whitespace.<br>
+<br>
+@@ -380,6 +383,11 @@<br>
+ * defs/i386.doc: New file.<br>
+ * defs/x86_64: New file.<br>
+<br>
++2005-04-04 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it instead of -Wextra.<br>
++<br>
+ 2005-02-15 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.<br>
+--- elfutils/libcpu/i386_disasm.c<br>
++++ elfutils/libcpu/i386_disasm.c<br>
+@@ -822,6 +822,7 @@ i386_disasm (const uint8_t **startp, con<br>
+<br>
+ default:<br>
+ assert (! "INVALID not handled");<br>
++ abort ();<br>
+ }<br>
+ }<br>
+ else<br>
+--- elfutils/libcpu/Makefile.in<br>
++++ elfutils/libcpu/Makefile.in<br>
+@@ -84,6 +84,7 @@ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a><br>
+ $(srcdir)/Makefile.am i386_lex.c i386_parse.c \<br>
+ $(top_srcdir)/config/depcomp $(top_srcdir)/config/ylwrap \<br>
+ $(am__noinst_HEADERS_DIST) ChangeLog<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
+ @MAINTAINER_MODE_TRUE@noinst_PROGRAMS = i386_gendis$(EXEEXT)<br>
+ subdir = libcpu<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+@@ -223,6 +224,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = lex.$(<F:lex.l=)<br>
+@@ -254,6 +256,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = @VERSION@<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -316,10 +319,11 @@ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \<br>
+ -I$(srcdir)/../libelf -I$(srcdir)/../libebl \<br>
+ -I$(srcdir)/../libdw -I$(srcdir)/../libasm<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
+ $($(*F)_no_Werror),,-Werror) $(if \<br>
+- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic \<br>
+- -fdollars-in-identifiers<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1) -fpic -fdollars-in-identifiers<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda $(foreach P,i386 x86_64,$P_defs \<br>
+ $P.mnemonics)<br>
+--- elfutils/libdw/ChangeLog<br>
++++ elfutils/libdw/ChangeLog<br>
+@@ -717,6 +717,10 @@<br>
+<br>
+ * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.<br>
+<br>
++2011-07-20 Mark Wielaard <<a href="mailto:mjw@redhat.com" target="_blank">mjw@redhat.com</a>><br>
++<br>
++ * dwarf_begin_elf.c: Add fallback for be64toh if not defined.<br>
++<br>
+ 2011-07-14 Mark Wielaard <<a href="mailto:mjw@redhat.com" target="_blank">mjw@redhat.com</a>><br>
+<br>
+ * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.<br>
+@@ -1076,6 +1080,10 @@<br>
+<br>
+ * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.<br>
+<br>
++2009-08-17 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * libdw.h: Disable extern inlines for GCC 4.2.<br>
++<br>
+ 2009-08-10 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * dwarf_getscopevar.c: Use dwarf_diename.<br>
+@@ -1844,6 +1852,11 @@<br>
+<br>
+ 2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
++2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
+ * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to<br>
+ formref offset.<br>
+<br>
+--- elfutils/libdw/dwarf_begin_elf.c<br>
++++ elfutils/libdw/dwarf_begin_elf.c<br>
+@@ -47,6 +47,14 @@<br>
+ #if USE_ZLIB<br>
+ # include <endian.h><br>
+ # define crc32 loser_crc32<br>
++# ifndef be64toh<br>
++# include <byteswap.h><br>
++# if __BYTE_ORDER == __LITTLE_ENDIAN<br>
++# define be64toh(x) bswap_64 (x)<br>
++# else<br>
++# define be64toh(x) (x)<br>
++# endif<br>
++# endif<br>
+ # include <zlib.h><br>
+ # undef crc32<br>
+ #endif<br>
+--- elfutils/libdw/libdw.h<br>
++++ elfutils/libdw/libdw.h<br>
+@@ -1003,7 +1003,7 @@ extern Dwarf_OOM dwarf_new_oom_handler (<br>
+<br>
+<br>
+ /* Inline optimizations. */<br>
+-#ifdef __OPTIMIZE__<br>
++#if defined __OPTIMIZE__ && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2)<br>
+ /* Return attribute code of given attribute. */<br>
+ __libdw_extern_inline unsigned int<br>
+ dwarf_whatattr (Dwarf_Attribute *attr)<br>
+--- elfutils/libdw/Makefile.in<br>
++++ elfutils/libdw/Makefile.in<br>
+@@ -84,7 +84,8 @@ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a><br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS) \<br>
+ ChangeLog<br>
+-@BUILD_STATIC_TRUE@am__append_1 = -fpic<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
++@BUILD_STATIC_TRUE@am__append_2 = -fpic<br>
+ noinst_PROGRAMS = $(am__EXEEXT_1)<br>
+ subdir = libdw<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+@@ -298,6 +299,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -329,6 +331,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = 1<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -390,10 +393,11 @@ top_srcdir = @top_srcdir@<br>
+ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \<br>
+ -I$(srcdir)/../libelf<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
+ $($(*F)_no_Werror),,-Werror) $(if \<br>
+- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) \<br>
+- $(am__append_1)<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1) $(am__append_2)<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda<br>
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"<br>
+--- elfutils/libdwelf/Makefile.in<br>
++++ elfutils/libdwelf/Makefile.in<br>
+@@ -82,6 +82,7 @@ host_triplet = @host@<br>
+ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a> $(srcdir)/Makefile.in \<br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
+ subdir = libdwelf<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+ am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \<br>
+@@ -227,6 +228,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -258,6 +260,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = 1<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -320,11 +323,11 @@ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \<br>
+ -I$(srcdir)/../libelf -I$(srcdir)/../libdw \<br>
+ -I$(srcdir)/../libdwfl -I$(srcdir)/../libebl<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \<br>
+- $(if $($(*F)_no_Werror),,-Werror) \<br>
+- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \<br>
+- $($(*F)_CFLAGS)<br>
+-<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
++ $($(*F)_no_Werror),,-Werror) $(if \<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1)<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda $(am_libdwelf_pic_a_OBJECTS)<br>
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"<br>
+--- elfutils/libdwfl/ChangeLog<br>
++++ elfutils/libdwfl/ChangeLog<br>
+@@ -571,6 +571,21 @@<br>
+ (dwfl_module_addrsym) (i_to_symfile): New function.<br>
+ (dwfl_module_addrsym) (search_table): Use it.<br>
+<br>
++2013-11-09 Jan Kratochvil <<a href="mailto:jan.kratochvil@redhat.com" target="_blank">jan.kratochvil@redhat.com</a>><br>
++<br>
++ Older OS compatibility bits.<br>
++ * linux-core-attach.c (be64toh, le64toh, be32toh, le32toh): Provide<br>
++ fallbacks if not defined by system.<br>
++<br>
++2013-11-09 Jan Kratochvil <<a href="mailto:jan.kratochvil@redhat.com" target="_blank">jan.kratochvil@redhat.com</a>><br>
++<br>
++ Handle T-stopped detach for old kernels.<br>
++ * linux-pid-attach.c (struct pid_arg): New field stopped.<br>
++ (ptrace_attach): New parameter stoppedp. Set it appropriately.<br>
++ (pid_set_initial_registers): Pass the new field.<br>
++ (pid_thread_detach): Handle the case of STOPPED for old kernels.<br>
++ (__libdwfl_attach_state_for_pid): Initialize STOPPED.<br>
++<br>
+ 2013-11-07 Jan Kratochvil <<a href="mailto:jan.kratochvil@redhat.com" target="_blank">jan.kratochvil@redhat.com</a>><br>
+ Mark Wielaard <<a href="mailto:mjw@redhat.com" target="_blank">mjw@redhat.com</a>><br>
+<br>
+@@ -2336,6 +2351,11 @@<br>
+<br>
+ 2005-07-21 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
++2005-07-21 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
+ * Makefile.am (noinst_HEADERS): Add loc2c.c.<br>
+<br>
+ * test2.c (main): Check sscanf result to quiet warning.<br>
+--- elfutils/libdwfl/linux-core-attach.c<br>
++++ elfutils/libdwfl/linux-core-attach.c<br>
+@@ -29,6 +29,35 @@<br>
+ #include "libdwflP.h"<br>
+ #include <fcntl.h><br>
+ #include "system.h"<br>
++#include <endian.h><br>
++#include <byteswap.h><br>
++#if __BYTE_ORDER == __LITTLE_ENDIAN<br>
++# ifndef be64toh<br>
++# define be64toh(x) bswap_64 (x)<br>
++# endif<br>
++# ifndef le64toh<br>
++# define le64toh(x) (x)<br>
++# endif<br>
++# ifndef be32toh<br>
++# define be32toh(x) bswap_32 (x)<br>
++# endif<br>
++# ifndef le32toh<br>
++# define le32toh(x) (x)<br>
++# endif<br>
++#else<br>
++# ifndef be64toh<br>
++# define be64toh(x) (x)<br>
++# endif<br>
++# ifndef le64toh<br>
++# define le64toh(x) bswap_64 (x)<br>
++# endif<br>
++# ifndef be32toh<br>
++# define be32toh(x) (x)<br>
++# endif<br>
++# ifndef le32toh<br>
++# define le32toh(x) bswap_32 (x)<br>
++# endif<br>
++#endif<br>
+<br>
+ #include "../libdw/memory-access.h"<br>
+<br>
+--- elfutils/libdwfl/linux-pid-attach.c<br>
++++ elfutils/libdwfl/linux-pid-attach.c<br>
+@@ -255,6 +255,11 @@ void<br>
+ internal_function<br>
+ __libdwfl_ptrace_detach (pid_t tid, bool tid_was_stopped)<br>
+ {<br>
++ // Older kernels (tested kernel-2.6.18-348.12.1.el5.x86_64) need special<br>
++ // handling of the detachment to keep the process State: T (stopped).<br>
++ if (tid_was_stopped)<br>
++ syscall (__NR_tkill, tid, SIGSTOP);<br>
++<br>
+ /* This handling is needed only on older Linux kernels such as<br>
+ 2.6.32-358.23.2.el6.ppc64. Later kernels such as<br>
+ 3.11.7-200.fc19.x86_64 remember the T (stopped) state<br>
+@@ -262,6 +267,15 @@ __libdwfl_ptrace_detach (pid_t tid, bool<br>
+ PTRACE_DETACH. */<br>
+ ptrace (PTRACE_DETACH, tid, NULL,<br>
+ (void *) (intptr_t) (tid_was_stopped ? SIGSTOP : 0));<br>
++<br>
++ if (tid_was_stopped)<br>
++ {<br>
++ // Wait till the SIGSTOP settles down.<br>
++ int i;<br>
++ for (i = 0; i < 100000; i++)<br>
++ if (linux_proc_pid_is_stopped (tid))<br>
++ break;<br>
++ }<br>
+ }<br>
+<br>
+ static void<br>
+--- elfutils/libdwfl/Makefile.in<br>
++++ elfutils/libdwfl/Makefile.in<br>
+@@ -82,9 +82,10 @@ host_triplet = @host@<br>
+ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a> $(srcdir)/Makefile.in \<br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog<br>
+-@ZLIB_TRUE@am__append_1 = gzip.c<br>
+-@BZLIB_TRUE@am__append_2 = bzip2.c<br>
+-@LZMA_TRUE@am__append_3 = lzma.c<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
++@ZLIB_TRUE@am__append_2 = gzip.c<br>
++@BZLIB_TRUE@am__append_3 = bzip2.c<br>
++@LZMA_TRUE@am__append_4 = lzma.c<br>
+ subdir = libdwfl<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+ am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \<br>
+@@ -286,6 +287,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -317,6 +319,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = 1<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -379,11 +382,11 @@ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. -I$(srcdir) \<br>
+ -I$(srcdir)/../libelf -I$(srcdir)/../libebl \<br>
+ -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \<br>
+- $(if $($(*F)_no_Werror),,-Werror) \<br>
+- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \<br>
+- $($(*F)_CFLAGS)<br>
+-<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
++ $($(*F)_no_Werror),,-Werror) $(if \<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1)<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda $(am_libdwfl_pic_a_OBJECTS)<br>
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"<br>
+@@ -413,8 +416,8 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_en<br>
+ dwfl_module_register_names.c dwfl_segment_report_module.c \<br>
+ link_map.c core-file.c open.c image-header.c dwfl_frame.c \<br>
+ frame_unwind.c dwfl_frame_pc.c linux-pid-attach.c \<br>
+- linux-core-attach.c dwfl_frame_regs.c $(am__append_1) \<br>
+- $(am__append_2) $(am__append_3)<br>
++ linux-core-attach.c dwfl_frame_regs.c $(am__append_2) \<br>
++ $(am__append_3) $(am__append_4)<br>
+ libdwfl = $(libdw)<br>
+ libdw = ../libdw/libdw.so<br>
+ libelf = ../libelf/libelf.so<br>
+--- elfutils/libebl/ChangeLog<br>
++++ elfutils/libebl/ChangeLog<br>
+@@ -765,6 +765,11 @@<br>
+ * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency<br>
+ tracking works right.<br>
+<br>
++2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
+ 2005-05-21 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * libebl_x86_64.map: Add x86_64_core_note.<br>
+--- elfutils/libebl/Makefile.in<br>
++++ elfutils/libebl/Makefile.in<br>
+@@ -82,6 +82,7 @@ host_triplet = @host@<br>
+ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a> $(srcdir)/Makefile.in \<br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
+ subdir = libebl<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+ am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \<br>
+@@ -249,6 +250,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -280,6 +282,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = 1<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -342,9 +345,11 @@ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \<br>
+ -I$(srcdir)/../libelf -I$(srcdir)/../libdw \<br>
+ -I$(srcdir)/../libasm<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
+ $($(*F)_no_Werror),,-Werror) $(if \<br>
+- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1) -fpic<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda $(am_libebl_pic_a_OBJECTS)<br>
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"<br>
+--- elfutils/libelf/ChangeLog<br>
++++ elfutils/libelf/ChangeLog<br>
+@@ -244,6 +244,11 @@<br>
+<br>
+ * elf-knowledge.h (SECTION_STRIP_P): Remove < SHT_NUM check.<br>
+<br>
++2011-03-10 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * gnuhash_xlate.h (elf_cvt_gnuhash): Avoid post-increment in bswap_32<br>
++ argument, since some implementations are buggy macros.<br>
++<br>
+ 2011-02-26 Mark Wielaard <<a href="mailto:mjw@redhat.com" target="_blank">mjw@redhat.com</a>><br>
+<br>
+ * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.<br>
+@@ -921,6 +926,11 @@<br>
+<br>
+ * elf.h: Update from glibc.<br>
+<br>
++2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
+ 2005-05-08 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * elf_begin.c (read_file) [_MUDFLAP]: Don't use mmap for now.<br>
+--- elfutils/libelf/common.h<br>
++++ elfutils/libelf/common.h<br>
+@@ -139,7 +139,7 @@ libelf_release_all (Elf *elf)<br>
+ (Var) = (sizeof (Var) == 1 \<br>
+ ? (unsigned char) (Var) \<br>
+ : (sizeof (Var) == 2 \<br>
+- ? bswap_16 (Var) \<br>
++ ? (unsigned short int) bswap_16 (Var) \<br>
+ : (sizeof (Var) == 4 \<br>
+ ? bswap_32 (Var) \<br>
+ : bswap_64 (Var))))<br>
+@@ -148,7 +148,7 @@ libelf_release_all (Elf *elf)<br>
+ (Dst) = (sizeof (Var) == 1 \<br>
+ ? (unsigned char) (Var) \<br>
+ : (sizeof (Var) == 2 \<br>
+- ? bswap_16 (Var) \<br>
++ ? (unsigned short int) bswap_16 (Var) \<br>
+ : (sizeof (Var) == 4 \<br>
+ ? bswap_32 (Var) \<br>
+ : bswap_64 (Var))))<br>
+--- elfutils/libelf/gnuhash_xlate.h<br>
++++ elfutils/libelf/gnuhash_xlate.h<br>
+@@ -1,5 +1,5 @@<br>
+ /* Conversion functions for versioning information.<br>
+- Copyright (C) 2006, 2007 Red Hat, Inc.<br>
++ Copyright (C) 2006-2011 Red Hat, Inc.<br>
+ This file is part of elfutils.<br>
+ Written by Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>>, 2006.<br>
+<br>
+@@ -68,7 +68,9 @@ elf_cvt_gnuhash (void *dest, const void<br>
+ dest32 = (Elf32_Word *) &dest64[bitmask_words];<br>
+ while (len >= 4)<br>
+ {<br>
+- *dest32++ = bswap_32 (*src32++);<br>
++ *dest32 = bswap_32 (*src32);<br>
++ ++dest32;<br>
++ ++src32;<br>
+ len -= 4;<br>
+ }<br>
+ }<br>
+--- elfutils/libelf/Makefile.in<br>
++++ elfutils/libelf/Makefile.in<br>
+@@ -84,9 +84,10 @@ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a><br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS) \<br>
+ ChangeLog<br>
+-@BUILD_STATIC_TRUE@am__append_1 = -fpic<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
++@BUILD_STATIC_TRUE@am__append_2 = -fpic<br>
+ noinst_PROGRAMS = $(am__EXEEXT_1)<br>
+-@USE_LOCKS_TRUE@am__append_2 = -lpthread<br>
++@USE_LOCKS_TRUE@am__append_3 = -lpthread<br>
+ subdir = libelf<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+ am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \<br>
+@@ -291,6 +292,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -322,6 +324,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = 1<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -382,10 +385,11 @@ top_builddir = @top_builddir@<br>
+ top_srcdir = @top_srcdir@<br>
+ zip_LIBS = @zip_LIBS@<br>
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
+ $($(*F)_no_Werror),,-Werror) $(if \<br>
+- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) \<br>
+- $(am__append_1)<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1) $(am__append_2)<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda $(am_libelf_pic_a_OBJECTS) \<br>
+ libelf.so.$(VERSION)<br>
+@@ -449,7 +453,7 @@ libelf_a_SOURCES = elf_version.c elf_has<br>
+<br>
+ libelf_pic_a_SOURCES =<br>
+ am_libelf_pic_a_OBJECTS = $(libelf_a_SOURCES:.c=.os)<br>
+-libelf_so_LDLIBS = $(am__append_2)<br>
++libelf_so_LDLIBS = $(am__append_3)<br>
+ libelf_so_SOURCES =<br>
+ noinst_HEADERS = elf.h abstract.h common.h exttypes.h gelf_xlate.h libelfP.h \<br>
+ version_xlate.h gnuhash_xlate.h note_xlate.h dl-hash.h<br>
+--- elfutils/m4/Makefile.in<br>
++++ elfutils/m4/Makefile.in<br>
+@@ -145,6 +145,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -176,6 +177,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = @VERSION@<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+--- elfutils/Makefile.in<br>
++++ elfutils/Makefile.in<br>
+@@ -263,6 +263,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -294,6 +295,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = @VERSION@<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+--- elfutils/src/addr2line.c<br>
++++ elfutils/src/addr2line.c<br>
+@@ -540,10 +540,10 @@ handle_address (const char *string, Dwfl<br>
+ bool parsed = false;<br>
+ int i, j;<br>
+ char *name = NULL;<br>
+- if (sscanf (string, "(%m[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2<br>
++ if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2<br>
+ && string[i] == '\0')<br>
+ parsed = adjust_to_section (name, &addr, dwfl);<br>
+- switch (sscanf (string, "%m[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j))<br>
++ switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j))<br>
+ {<br>
+ default:<br>
+ break;<br>
+--- elfutils/src/ChangeLog<br>
++++ elfutils/src/ChangeLog<br>
+@@ -1371,8 +1371,16 @@<br>
+ * readelf.c (attr_callback): Use print_block only when we don't use<br>
+ print_ops.<br>
+<br>
++2009-08-17 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * ld.h: Disable extern inlines for GCC 4.2.<br>
++<br>
+ 2009-08-14 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
++ * strings.c (read_block): Conditionalize posix_fadvise use<br>
++ on [POSIX_FADV_SEQUENTIAL].<br>
++ From Petr Salinger <<a href="mailto:Petr.Salinger@seznam.cz" target="_blank">Petr.Salinger@seznam.cz</a>>.<br>
++<br>
+ * ar.c (do_oper_extract): Use pathconf instead of statfs.<br>
+<br>
+ 2009-08-01 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+@@ -1536,6 +1544,8 @@<br>
+ * readelf.c (print_debug_frame_section): Use t instead of j formats<br>
+ for ptrdiff_t OFFSET.<br>
+<br>
++ * addr2line.c (handle_address): Use %a instead of %m for compatibility.<br>
++<br>
+ 2009-01-21 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section<br>
+@@ -1719,6 +1729,11 @@<br>
+ that matches its PT_LOAD's p_flags &~ PF_W. On sparc, PF_X really<br>
+ is valid in RELRO.<br>
+<br>
++2008-03-01 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * readelf.c (dump_archive_index): Tweak portability hack<br>
++ to match [__GNUC__ < 4] too.<br>
++<br>
+ 2008-02-29 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * readelf.c (print_attributes): Add a cast.<br>
+@@ -1970,6 +1985,8 @@<br>
+<br>
+ * readelf.c (hex_dump): Fix rounding error in whitespace calculation.<br>
+<br>
++ * Makefile.am (readelf_no_Werror): New variable.<br>
++<br>
+ 2007-10-15 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * <a href="http://make-debug-archive.in" target="_blank">make-debug-archive.in</a>: New file.<br>
+@@ -2409,6 +2426,10 @@<br>
+ * elflint.c (valid_e_machine): Add EM_ALPHA.<br>
+ Reported by Christian Aichinger <<a href="mailto:Greek0@gmx.net" target="_blank">Greek0@gmx.net</a>>.<br>
+<br>
++ * strings.c (map_file): Define POSIX_MADV_SEQUENTIAL to<br>
++ MADV_SEQUENTIAL if undefined. Don't call posix_madvise<br>
++ if neither is defined.<br>
++<br>
+ 2006-08-08 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.<br>
+@@ -2485,6 +2506,10 @@<br>
+ * Makefile.am: Add hacks to create dependency files for non-generic<br>
+ linker.<br>
+<br>
++2006-04-05 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * strings.c (MAP_POPULATE): Define to 0 if undefined.<br>
++<br>
+ 2006-06-12 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * ldgeneric.c (ld_generic_generate_sections): Don't create .interp<br>
+@@ -2833,6 +2858,11 @@<br>
+ * readelf.c (print_debug_loc_section): Fix indentation for larger<br>
+ address size.<br>
+<br>
++2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
+ 2005-05-30 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
+ * readelf.c (print_debug_line_section): Print section offset of each<br>
+--- elfutils/src/findtextrel.c<br>
++++ elfutils/src/findtextrel.c<br>
+@@ -502,7 +502,11 @@ ptrcompare (const void *p1, const void *<br>
+<br>
+<br>
+ static void<br>
+-check_rel (size_t nsegments, struct segments segments[nsegments],<br>
++check_rel (size_t nsegments, struct segments segments[<br>
++#if __GNUC__ >= 4<br>
++ nsegments<br>
++#endif<br>
++ ],<br>
+ GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw,<br>
+ const char *fname, bool more_than_one, void **knownsrcs)<br>
+ {<br>
+--- elfutils/src/ld.h<br>
++++ elfutils/src/ld.h<br>
+@@ -1114,6 +1114,7 @@ extern bool dynamically_linked_p (void);<br>
+<br>
+ /* Checked whether the symbol is undefined and referenced from a DSO. */<br>
+ extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);<br>
++#if defined __OPTIMIZE__ && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2)<br>
+ #ifdef __GNUC_STDC_INLINE__<br>
+ __attribute__ ((__gnu_inline__))<br>
+ #endif<br>
+@@ -1131,5 +1132,6 @@ linked_from_dso_p (struct scninfo *scnin<br>
+<br>
+ return sym->defined && sym->in_dso;<br>
+ }<br>
++#endif /* Optimizing and not GCC 4.2. */<br>
+<br>
+ #endif /* ld.h */<br>
+--- elfutils/src/Makefile.am<br>
++++ elfutils/src/Makefile.am<br>
+@@ -89,6 +89,11 @@ endif<br>
+ # XXX While the file is not finished, don't warn about this<br>
+ ldgeneric_no_Wunused = yes<br>
+<br>
++# Buggy old compilers or libc headers.<br>
++readelf_no_Werror = yes<br>
++strings_no_Werror = yes<br>
++addr2line_no_Wformat = yes<br>
++<br>
+ readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl<br>
+ nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl \<br>
+ $(demanglelib)<br>
+--- elfutils/src/Makefile.in<br>
++++ elfutils/src/Makefile.in<br>
+@@ -85,6 +85,7 @@ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a><br>
+ $(srcdir)/Makefile.am ldlex.c ldscript.c \<br>
+ $(top_srcdir)/config/depcomp $(top_srcdir)/config/ylwrap \<br>
+ $(noinst_HEADERS) ChangeLog<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
+ bin_PROGRAMS = readelf$(EXEEXT) nm$(EXEEXT) size$(EXEEXT) \<br>
+ strip$(EXEEXT) ld$(EXEEXT) elflint$(EXEEXT) \<br>
+ findtextrel$(EXEEXT) addr2line$(EXEEXT) elfcmp$(EXEEXT) \<br>
+@@ -93,9 +94,9 @@ bin_PROGRAMS = readelf$(EXEEXT) nm$(EXEE<br>
+ @NATIVE_LD_FALSE@noinst_PROGRAMS = $(am__EXEEXT_1)<br>
+ # We never build this library but we need to get the dependency files<br>
+ # of all the linker backends that might be used in a non-generic linker.<br>
+-@NEVER_TRUE@am__append_1 = libdummy.a<br>
++@NEVER_TRUE@am__append_2 = libdummy.a<br>
+ # -ldl is always needed for libebl.<br>
+-@NATIVE_LD_TRUE@am__append_2 = libld_elf.a<br>
++@NATIVE_LD_TRUE@am__append_3 = libld_elf.a<br>
+ @NATIVE_LD_TRUE@am_libld_elf_i386_pic_a_OBJECTS =<br>
+ subdir = src<br>
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4<br>
+@@ -159,7 +160,7 @@ am_ld_OBJECTS = ld.$(OBJEXT) ldgeneric.$<br>
+ ldscript.$(OBJEXT) symbolhash.$(OBJEXT) sectionhash.$(OBJEXT) \<br>
+ versionhash.$(OBJEXT)<br>
+ ld_OBJECTS = $(am_ld_OBJECTS)<br>
+-ld_DEPENDENCIES = $(libebl) $(libelf) $(libeu) $(am__append_2)<br>
++ld_DEPENDENCIES = $(libebl) $(libelf) $(libeu) $(am__append_3)<br>
+ ld_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(ld_LDFLAGS) $(LDFLAGS) -o \<br>
+ $@<br>
+ am_libld_elf_i386_so_OBJECTS =<br>
+@@ -340,6 +341,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@<br>
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@<br>
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@<br>
+ LDFLAGS = @LDFLAGS@<br>
++LD_AS_NEEDED = @LD_AS_NEEDED@<br>
+ LEX = @LEX@<br>
+ LEXLIB = @LEXLIB@<br>
+ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@<br>
+@@ -371,6 +373,7 @@ SHELL = @SHELL@<br>
+ STRIP = @STRIP@<br>
+ USE_NLS = @USE_NLS@<br>
+ VERSION = @VERSION@<br>
++WEXTRA = @WEXTRA@<br>
+ XGETTEXT = @XGETTEXT@<br>
+ XGETTEXT_015 = @XGETTEXT_015@<br>
+ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@<br>
+@@ -434,11 +437,11 @@ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_sr<br>
+ -I$(srcdir)/../libelf -I$(srcdir)/../libebl \<br>
+ -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf \<br>
+ -I$(srcdir)/../libdwfl -I$(srcdir)/../libasm<br>
+-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \<br>
+- $(if $($(*F)_no_Werror),,-Werror) \<br>
+- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \<br>
+- $($(*F)_CFLAGS)<br>
+-<br>
++AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \<br>
++ $($(*F)_no_Werror),,-Werror) $(if \<br>
++ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \<br>
++ $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \<br>
++ $(am__append_1)<br>
+ COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))<br>
+ CLEANFILES = *.gcno *.gcda make-debug-archive none_ld.os \<br>
+ $(ld_modules:.c=.os) *.gconv<br>
+@@ -452,8 +455,8 @@ AM_LFLAGS = -Pld -olex.yy.c<br>
+ native_ld = @native_ld@<br>
+ ld_dsos = libld_elf_i386_pic.a<br>
+ @NATIVE_LD_FALSE@noinst_LIBRARIES = libld_elf.a libar.a $(ld_dsos) \<br>
+-@NATIVE_LD_FALSE@ $(am__append_1)<br>
+-@NATIVE_LD_TRUE@noinst_LIBRARIES = libld_elf.a libar.a $(am__append_1)<br>
++@NATIVE_LD_FALSE@ $(am__append_2)<br>
++@NATIVE_LD_TRUE@noinst_LIBRARIES = libld_elf.a libar.a $(am__append_2)<br>
+ @NATIVE_LD_TRUE@native_ld_cflags = -DBASE_ELF_NAME=elf_$(base_cpu)<br>
+ @NEVER_TRUE@libdummy_a_SOURCES = i386_ld.c<br>
+ ld_SOURCES = ld.c ldgeneric.c ldlex.l ldscript.y symbolhash.c sectionhash.c \<br>
+@@ -479,13 +482,18 @@ libeu = ../lib/libeu.a<br>
+<br>
+ # XXX While the file is not finished, don't warn about this<br>
+ ldgeneric_no_Wunused = yes<br>
++<br>
++# Buggy old compilers or libc headers.<br>
++readelf_no_Werror = yes<br>
++strings_no_Werror = yes<br>
++addr2line_no_Wformat = yes<br>
+ readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl<br>
+ nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl \<br>
+ $(demanglelib)<br>
+<br>
+ size_LDADD = $(libelf) $(libeu)<br>
+ strip_LDADD = $(libebl) $(libelf) $(libeu) -ldl<br>
+-ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl $(am__append_2)<br>
++ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl $(am__append_3)<br>
+ ld_LDFLAGS = -rdynamic<br>
+ elflint_LDADD = $(libebl) $(libelf) $(libeu) -ldl<br>
+ findtextrel_LDADD = $(libdw) $(libelf)<br>
+--- elfutils/src/readelf.c<br>
++++ elfutils/src/readelf.c<br>
+@@ -4368,10 +4368,12 @@ listptr_base (struct listptr *p)<br>
+ return base;<br>
+ }<br>
+<br>
++static const char *listptr_name;<br>
++<br>
+ static int<br>
+-compare_listptr (const void *a, const void *b, void *arg)<br>
++compare_listptr (const void *a, const void *b)<br>
+ {<br>
+- const char *name = arg;<br>
++ const char *const name = listptr_name;<br>
+ struct listptr *p1 = (void *) a;<br>
+ struct listptr *p2 = (void *) b;<br>
+<br>
+@@ -4467,8 +4469,11 @@ static void<br>
+ sort_listptr (struct listptr_table *table, const char *name)<br>
+ {<br>
+ if (table->n > 0)<br>
+- qsort_r (table->table, table->n, sizeof table->table[0],<br>
+- &compare_listptr, (void *) name);<br>
++ {<br>
++ listptr_name = name;<br>
++ qsort (table->table, table->n, sizeof table->table[0],<br>
++ &compare_listptr);<br>
++ }<br>
+ }<br>
+<br>
+ static bool<br>
+@@ -9539,7 +9544,7 @@ dump_archive_index (Elf *elf, const char<br>
+ if (unlikely (elf_rand (elf, as_off) == 0)<br>
+ || unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf))<br>
+ == NULL))<br>
+-#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 7)<br>
++#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 7) || __GNUC__ < 4<br>
+ while (1)<br>
+ #endif<br>
+ error (EXIT_FAILURE, 0,<br>
+--- elfutils/src/strings.c<br>
++++ elfutils/src/strings.c<br>
+@@ -43,6 +43,10 @@<br>
+<br>
+ #include <system.h><br>
+<br>
++#ifndef MAP_POPULATE<br>
++# define MAP_POPULATE 0<br>
++#endif<br>
++<br>
+<br>
+ /* Prototypes of local functions. */<br>
+ static int read_fd (int fd, const char *fname, off64_t fdlen);<br>
+@@ -489,8 +493,13 @@ map_file (int fd, off64_t start_off, off<br>
+ fd, start_off);<br>
+ if (mem != MAP_FAILED)<br>
+ {<br>
++#if !defined POSIX_MADV_SEQUENTIAL && defined MADV_SEQUENTIAL<br>
++# define POSIX_MADV_SEQUENTIAL MADV_SEQUENTIAL<br>
++#endif<br>
++#ifdef POSIX_MADV_SEQUENTIAL<br>
+ /* We will go through the mapping sequentially. */<br>
+ (void) posix_madvise (mem, map_size, POSIX_MADV_SEQUENTIAL);<br>
++#endif<br>
+ break;<br>
+ }<br>
+ if (errno != EINVAL && errno != ENOMEM)<br>
+@@ -581,9 +590,11 @@ read_block (int fd, const char *fname, o<br>
+ elfmap_off = from & ~(ps - 1);<br>
+ elfmap_base = elfmap = map_file (fd, elfmap_off, fdlen, &elfmap_size);<br>
+<br>
++#ifdef POSIX_FADV_SEQUENTIAL<br>
+ if (unlikely (elfmap == MAP_FAILED))<br>
+ /* Let the kernel know we are going to read everything in sequence. */<br>
+ (void) posix_fadvise (fd, 0, 0, POSIX_FADV_SEQUENTIAL);<br>
++#endif<br>
+ }<br>
+<br>
+ if (unlikely (elfmap == MAP_FAILED))<br>
+--- elfutils/src/strip.c<br>
++++ elfutils/src/strip.c<br>
+@@ -45,6 +45,12 @@<br>
+ #include <libebl.h><br>
+ #include <system.h><br>
+<br>
++#ifdef HAVE_FUTIMES<br>
++# define FUTIMES(fd, fname, tvp) futimes (fd, tvp)<br>
++#else<br>
++# define FUTIMES(fd, fname, tvp) utimes (fname, tvp)<br>
++#endif<br>
++<br>
+ typedef uint8_t GElf_Byte;<br>
+<br>
+ /* Name and version of program. */<br>
+@@ -318,8 +324,18 @@ process_file (const char *fname)<br>
+<br>
+ /* If we have to preserve the timestamp, we need it in the<br>
+ format utimes() understands. */<br>
++#ifdef HAVE_STRUCT_STAT_ST_ATIM<br>
+ TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);<br>
++#else<br>
++ tv[0].tv_sec = pre_st.st_atime;<br>
++ tv[0].tv_usec = 0;<br>
++#endif<br>
++#ifdef HAVE_STRUCT_STAT_ST_MTIM<br>
+ TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);<br>
++#else<br>
++ tv[1].tv_sec = pre_st.st_atime;<br>
++ tv[1].tv_usec = 0;<br>
++#endif<br>
+ }<br>
+<br>
+ /* Open the file. */<br>
+@@ -2091,7 +2107,7 @@ while computing checksum for debug infor<br>
+ /* If requested, preserve the timestamp. */<br>
+ if (tvp != NULL)<br>
+ {<br>
+- if (futimes (fd, tvp) != 0)<br>
++ if (FUTIMES (fd, output_fname, tvp) != 0)<br>
+ {<br>
+ error (0, errno, gettext ("\<br>
+ cannot set access and modification date of '%s'"),<br>
+@@ -2148,7 +2164,7 @@ handle_ar (int fd, Elf *elf, const char<br>
+<br>
+ if (tvp != NULL)<br>
+ {<br>
+- if (unlikely (futimes (fd, tvp) != 0))<br>
++ if (unlikely (FUTIMES (fd, fname, tvp) != 0))<br>
+ {<br>
+ error (0, errno, gettext ("\<br>
+ cannot set access and modification date of '%s'"), fname);<br>
+--- elfutils/tests/backtrace.c<br>
++++ elfutils/tests/backtrace.c<br>
+@@ -36,6 +36,7 @@<br>
+ #include <fcntl.h><br>
+ #include <string.h><br>
+ #include <argp.h><br>
++#include <sys/syscall.h><br>
+ #include ELFUTILS_HEADER(dwfl)<br>
+<br>
+ #ifndef __linux__<br>
+--- elfutils/tests/ChangeLog<br>
++++ elfutils/tests/ChangeLog<br>
+@@ -421,6 +421,13 @@<br>
+<br>
+ 2013-12-02 Jan Kratochvil <<a href="mailto:jan.kratochvil@redhat.com" target="_blank">jan.kratochvil@redhat.com</a>><br>
+<br>
++ Handle T-stopped detach for old kernels.<br>
++ * backtrace.c: Include sys/syscall.h.<br>
++ (linux_proc_pid_is_stopped): New function.<br>
++ (ptrace_detach_stopped): Handle old kernels.<br>
++<br>
++2013-12-02 Jan Kratochvil <<a href="mailto:jan.kratochvil@redhat.com" target="_blank">jan.kratochvil@redhat.com</a>><br>
++<br>
+ * Makefile.am (check_PROGRAMS): Add backtrace, backtrace-child,<br>
+ backtrace-data and backtrace-dwarf.<br>
+ (BUILT_SOURCES, clean-local, backtrace-child-biarch): New.<br>
+@@ -1285,6 +1292,8 @@<br>
+<br>
+ 2008-01-21 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
+<br>
++ * line2addr.c (main): Revert last change.<br>
++<br>
+ * testfile45.S.bz2: Add tests for cltq, cqto.<br>
+ * testfile45.expect.bz2: Adjust.<br>
+<br>
+@@ -1993,6 +2002,11 @@<br>
+ * Makefile.am (TESTS): Add run-elflint-test.sh.<br>
+ (EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.<br>
+<br>
++2005-05-31 Roland McGrath <<a href="mailto:roland@redhat.com" target="_blank">roland@redhat.com</a>><br>
++<br>
++ * Makefile.am (WEXTRA): New variable, substituted by configure.<br>
++ (AM_CFLAGS): Use it in place of -Wextra.<br>
++<br>
+ 2005-05-24 Ulrich Drepper <<a href="mailto:drepper@redhat.com" target="_blank">drepper@redhat.com</a>><br>
+<br>
+ * get-files.c (main): Use correct format specifier.<br>
+--- elfutils/tests/line2addr.c<br>
++++ elfutils/tests/line2addr.c<br>
+@@ -124,7 +124,7 @@ main (int argc, char *argv[])<br>
+ {<br>
+ struct args a = { .arg = argv[cnt] };<br>
+<br>
+- switch (sscanf (a.arg, "%m[^:]:%d", &a.file, &a.line))<br>
++ switch (sscanf (a.arg, "%a[^:]:%d", &a.file, &a.line))<br>
+ {<br>
+ default:<br>
+ case 0:<br>
+--- elfutils/tests/Makefile.am<br>
++++ elfutils/tests/Makefile.am<br>
+@@ -365,6 +365,7 @@ get_lines_LDADD = $(libdw) $(libelf)<br>
+ get_files_LDADD = $(libdw) $(libelf)<br>
+ get_aranges_LDADD = $(libdw) $(libelf)<br>
+ allfcts_LDADD = $(libdw) $(libelf)<br>
++line2addr_no_Wformat = yes<br>
+ line2addr_LDADD = $(libdw)<br>
+ addrscopes_LDADD = $(libdw)<br>
+ funcscopes_LDADD = $(libdw)<br>
+--- elfutils/tests/Makefile.in<br>
++++ elfutils/tests/Makefile.in<br>
+@@ -80,13 +80,14 @@ host_triplet = @host@<br>
+ DIST_COMMON = $(top_srcdir)/config/<a href="http://eu.am" target="_blank">eu.am</a> $(srcdir)/Makefile.in \<br>
+ $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \<br>
+ $(top_srcdir)/config/test-driver ChangeLog<br>
+-@STANDALONE_FALSE@am__append_1 = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \<br>
++@BUILD_WERROR_TRUE@am__append_1 = $(if $($(*F)_no_Werror),,-Werror)<br>
++@STANDALONE_FALSE@am__append_2 = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \<br>
+ @STANDALONE_FALSE@ -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \<br>
+ @STANDALONE_FALSE@ -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \<br>
+ @STANDALONE_FALSE@ -I$(top_srcdir)/lib -I..<br>
+<br>
+-@STANDALONE_FALSE@am__append_2 = -Wl,-rpath-link,../libasm:../libdw:../libelf<br>
+-@TESTS_RPATH_TRUE@am__append_3 = -Wl,-rpath,$(BUILD_RPATH)<br>
++@STANDALONE_FALSE@am__append_3 = -Wl,-rpath-link,../libasm:../libdw:../libelf<br>
++@TESTS_RPATH_TRUE@am__append_4 = -Wl,-rpath,$(BUILD_RPATH)<br>
+ check_PROGRAMS = arextract$(EXEEXT) arsymtest$(EXEEXT) \<br>
+ newfile$(EXEEXT) saridx$(EXEEXT) scnnames$(EXEEXT) \<br>
+ sectiondump$(EXEEXT) showptable$(EXEEXT) update1$(EXEEXT) \<br>
+@@ -113,7 +114,7 @@ check_PROGRAMS = arextract$(EXEEXT) arsy<br>
+ deleted$(EXEEXT) deleted-lib.so$(EXEEXT) \<br>
+ aggregate_size$(EXEEXT) vdsosyms$(EXEEXT) $(am__EXEEXT_1) \<br>
+ $(am__EXEEXT_2) $(am__EXEEXT_4)<br>
+-@BIARCH_TRUE@am__append_4 = backtrace-child-biarch<br>
++@BIARCH_TRUE@am__append_5 = backtrace-child-biarch<br>
+ TESTS = run-arextract.sh run-arsymtest.sh newfile$(EXEEXT) \<br>
+ test-nlist$(EXEEXT) update1$(EXEEXT) update2$(EXEEXT) \<br>
+ update3$(EXEEXT) update4$(EXEEXT) run-show-die-info.sh \<br>
+@@ -159,14 +160,14 @@ TESTS = run-arextract.sh run-arsymtest.s<br>
+ run-stack-i-test.sh run-readelf-dwz-multi.sh \<br>
+ run-allfcts-multi.sh run-deleted.sh run-linkmap-cut.sh \<br>
+ run-aggregate-size.sh vdsosyms$(EXEEXT) run-readelf-A.sh \<br>
+- $(am__EXEEXT_2) $(am__append_7) $(am__append_8) \<br>
++ $(am__EXEEXT_2) $(am__append_8) $(am__append_9) \<br>
+ </blockquote></div>