From 1974584d55140e63297194a4ee2c261f344f5a9c Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sun, 24 Feb 2013 23:09:56 +0100 Subject: [PATCH] 0.155-5 rhbz#914908 ARM variant of elfutils-0.155-binutils-pr-ld-13621.patch --- elfutils-0.155-binutils-pr-ld-13621.patch | 35 +++++++++++++++++++++++ elfutils.spec | 6 +++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/elfutils-0.155-binutils-pr-ld-13621.patch b/elfutils-0.155-binutils-pr-ld-13621.patch index 3c6d92a..a23425c 100644 --- a/elfutils-0.155-binutils-pr-ld-13621.patch +++ b/elfutils-0.155-binutils-pr-ld-13621.patch @@ -60,3 +60,38 @@ index 4084987..bc5ed33 100644 ERROR (gettext ("\ section [%2d] '%s': symbol %zu: st_value out of bounds\n"), idx, section_name (ebl, idx), cnt); +commit b94cceae503b56fb360cd597f154fa2b33552887 +Author: Mark Wielaard +Date: Sun Feb 24 22:58:49 2013 +0100 + + elflint.c (check_symtab): Add __bss_start__ to the list of allowed symbols. + + Some architectures (ARM) use __bss_start__ instead of __bss_start. + + Signed-off-by: Mark Wielaard + +diff --git a/src/ChangeLog b/src/ChangeLog +index 7d7b66f..6e219e6 100644 +--- a/src/ChangeLog ++++ b/src/ChangeLog +@@ -1,3 +1,8 @@ ++2013-02-24 Mark Wielaard ++ ++ * elflint.c (check_symtab): Add __bss_start__ to the list of symbols ++ allowed to have out of section values because of GNU ld bugs. ++ + 2013-02-06 Mark Wielaard + + * elflint.c (check_symtab): Add __bss_start and __TMC_END__ to the +diff --git a/src/elflint.c b/src/elflint.c +index bc5ed33..acd458b 100644 +--- a/src/elflint.c ++++ b/src/elflint.c +@@ -782,6 +782,7 @@ section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"), + && strcmp (name, "__fini_array_start") != 0 + && strcmp (name, "__fini_array_end") != 0 + && strcmp (name, "__bss_start") != 0 ++ && strcmp (name, "__bss_start__") != 0 + && strcmp (name, "__TMC_END__") != 0)) + ERROR (gettext ("\ + section [%2d] '%s': symbol %zu: st_value out of bounds\n"), diff --git a/elfutils.spec b/elfutils.spec index 91a6dd9..f47ac54 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,7 +1,7 @@ Name: elfutils Summary: A collection of utilities and DSOs to handle compiled objects Version: 0.155 -%global baserelease 4 +%global baserelease 5 URL: https://fedorahosted.org/elfutils/ %global source_url http://fedorahosted.org/releases/e/l/elfutils/%{version}/ License: GPLv3+ and (GPLv2+ or LGPLv3+) @@ -331,6 +331,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libelf.a %changelog +* Sun Feb 24 2013 Mark Wielaard - 0.155-5 +- Add ARM variant to elfutils-0.155-binutils-pr-ld-13621.patch rhbz#914908. +- rhel >= 5 has xz-devel + * Fri Feb 22 2013 Mark Wielaard - 0.155-4 - Replace elfutils-0.155-binutils-pr-ld-13621.patch with upstream fix.