diff --git a/gcc-4.9.1-libbacktrace-fix-null-callback.patch b/gcc-4.9.1-libbacktrace-fix-null-callback.patch new file mode 100644 index 0000000..b7b52d6 --- /dev/null +++ b/gcc-4.9.1-libbacktrace-fix-null-callback.patch @@ -0,0 +1,11 @@ +--- gcc-linaro-4.9-2014.07/libbacktrace/elf.c.orig 2014-03-07 09:07:56.000000000 +0400 ++++ gcc-linaro-4.9-2014.07/libbacktrace/elf.c 2014-08-13 12:56:23.285272323 +0400 +@@ -925,7 +925,7 @@ + int ret; + int found_sym; + int found_dwarf; +- fileline elf_fileline_fn; ++ fileline elf_fileline_fn = elf_nodebug; + struct phdr_data pd; + + ret = elf_add (state, descriptor, 0, error_callback, data, &elf_fileline_fn, diff --git a/gcc.spec b/gcc.spec index be6033b..9e4a8d1 100644 --- a/gcc.spec +++ b/gcc.spec @@ -200,7 +200,7 @@ Name: gcc %else Name: gcc%{branch} %endif -Release: 2 +Release: 3 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Group: Development/C Url: http://gcc.gnu.org/ @@ -253,6 +253,8 @@ Patch12: gcc-4.8-non-fatal-compare-failure.patch Patch13: Gcc-4.8.2-arm-thumb2-CASE_VECTOR_SHORTEN_MODE.patch # Backport from upstream Patch14: gcc-4.9.1-bug61801.patch +# Fix for fileline_fn callback being NULL in libbacktrace sometimes +Patch15: gcc-4.9.1-libbacktrace-fix-null-callback.patch BuildRequires: binutils >= 2.20.51.0.2 BuildRequires: dejagnu @@ -2170,6 +2172,7 @@ Static liblsan. %patch12 -p1 -b .compare~ %patch13 -p1 -b .short %patch14 -p2 -b .bug61801 +%patch15 -p1 -b .libbacktrace aclocal -I config autoconf