Hello community, here is the log from the commit of package elfutils.2935 for openSUSE:12.3:Update checked in at 2014-08-11 09:44:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.3:Update/elfutils.2935 (Old) and /work/SRC/openSUSE:12.3:Update/.elfutils.2935.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "elfutils.2935" Changes: -------- New Changes file: --- /dev/null 2014-07-24 01:57:42.080040256 +0200 +++ /work/SRC/openSUSE:12.3:Update/.elfutils.2935.new/elfutils.changes 2014-08-11 09:44:58.000000000 +0200 @@ -0,0 +1,398 @@ +------------------------------------------------------------------- +Tue Apr 15 18:56:25 UTC 2014 - [email protected] + +- Fix integer overflow in check_section (CVE-2014-0172, bnc#872785) + Add patch: elfutils-check-for-overflow-before-calling-malloc-to-uncompress-data.patch + +------------------------------------------------------------------- +Wed Nov 28 09:37:52 UTC 2012 - [email protected] + +- add elfutils-aarch64.patch to support aarch64 +- update to 0.155 + + libelf: elf*_xlatetomd now works for cross-endian ELF note data. + elf_getshdr now works consistently on non-mmaped ELF files after + calling elf_cntl(ELF_C_FDREAD). + Implement support for ar archives with 64-bit symbol table. + [g]elf[32|64]_offscn() do not match SHT_NOBITS sections at OFFSET. + + libdw: dwarf.h corrected the DW_LANG_ObjC constant name (was DW_LANG_Objc). + Any existing sources using the old name will have to be updated. + Add DW_MACRO_GNU .debug_macro type encodings constants, DW_ATE_UTF + and DW_OP_GNU_parameter_ref to dwarf.h. + Experimental support for DWZ multifile forms DW_FORM_GNU_ref_alt + and DW_FORM_GNU_strp_alt. Disabled by default. Use configure + --enable-dwz to test it. + dwarf_highpc function now handles DWARF 4 DW_AT_high_pc constant form. + Fix bug using dwarf_next_unit to iterate over .debug_types. + + elflint: Now accepts gold linker produced executables. + + readelf: Add .debug_macro parsing support. + Add .gdb_index version 7 parsing support. + Recognize DW_OP_GNU_parameter_ref. + + backends: Add support for Tilera TILE-Gx processor. + + translations: Updated Ukrainian translation. + + The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for stand-alone + programs. There is now also a formal CONTRIBUTING document describing how to + submit patches. + +------------------------------------------------------------------- +Mon Oct 8 09:48:59 UTC 2012 - [email protected] + +- Fix baselibs.conf: elfutils-devel -> libelf-devel + +------------------------------------------------------------------- +Thu Sep 20 13:18:51 UTC 2012 - [email protected] + +- license update: SUSE-GPL-2.0-with-OSI-exception + Use a license available on the spreadsheet linked at + license.opensuse.org + +------------------------------------------------------------------- +Wed May 30 17:41:41 UTC 2012 - [email protected] + +- avoid automake dependency + +------------------------------------------------------------------- +Thu Mar 15 08:49:20 UTC 2012 - [email protected] + +- Update to 0.153: + * Fix building with gcc 4.7 + * New --disable-werror for portability. + * Support for .zdebug sections + * type_units and DW_AT_GNU_odr_signature support + * low level support DW_OP_GNU_entry_value and DW_TAG_GNU_call_site +- Revert scanf changes in portability patch since C99 gives %a a new + meaning. + +------------------------------------------------------------------- +Fri Dec 2 08:59:33 UTC 2011 - [email protected] + +- license update: GPL-2.0-with-osi-exception + elfutils is GPL-2.0 (only) with an exception for osi approved licenses. + Also, use SPDX format + +------------------------------------------------------------------- +Thu Dec 1 11:22:12 UTC 2011 - [email protected] + +- add automake as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Sun Sep 18 17:17:12 UTC 2011 - [email protected] + +- Remove redundant/obsolete tags/sections from specfile + (cf. packaging guidelines) +- Add elfutils-devel to baselibs + +------------------------------------------------------------------- +Tue May 24 15:32:28 UTC 2011 - [email protected] + +- Remote timestamps on binaries, breaks build compare +- Add missing build requires on zlib, bzip2 and lzma . + +------------------------------------------------------------------- +Wed Apr 27 00:35:22 UTC 2011 - [email protected] + +- Upgrade to 0.152, upstream changelog: + - Various build and warning nits fixed for newest GCC and Autoconf. + - libdwfl: Yet another prelink-related fix for another regression. + Look for Linux kernel images in files named with compression + suffixes. + - elfcmp: New flag --ignore-build-id to ignore differing build ID bits. + New flag -l/--verbose to print all differences. + +------------------------------------------------------------------- +Fri Jan 21 22:02:25 UTC 2011 - [email protected] + +- Update to 0.151 +- Upstream changelog for 0.151/0.150 + - libdwfl: Fix for more prelink cases with separate debug file. + - eu-strip: New flag --strip-sections to remove section headers entirely. + - libdwfl: Remove bogus assert. + - libdw: Fix for handling huge .debug_aranges section. + - libdwfl: Fix for handling prelinked DSO with separate debug file. + - findtextrel: Fix diagnostics to work with usual section ordering. + - libebl: i386 backend fix for multi-register integer return value location + +------------------------------------------------------------------- +Sat Sep 18 00:00:44 UTC 2010 - [email protected] + +- Update to 0.149 +- Upstream changelog + - libdwfl: Fix Linux kernel module search when dwfl_build_id_find_elf and + dwfl_build_id_find_debuginfo close fd on success + - readelf: Use symbolic printing for FDE initial_location address + - readelf: Print .debug_loc/.debug_ranges with cognizance of actual DIE + pointers into them. + - readelf: Fix crash in .debug_loc with garbage data. + - readelf: Fix DW_OP_call_ref printing for version 2 CUs. + - Handle DW_OP_GNU_implicit_pointer. + - Add dwfl_dwarf_line, addr2line -F to print out more line info bits. + - Add missing size entries for ELF_T_LIB and ELF_T_GNUHASH. + - Fix dwarf_formref_die DW_FORM_ref_sig8 hash table insertion. + - Consider .gdb_index as a debugging section + - Misc intendation, typo, translation and cleanup fixes + +------------------------------------------------------------------- +Mon Sep 13 11:32:58 UTC 2010 - [email protected] + +- add small patch to avoid crash in systemtap while building preload + +------------------------------------------------------------------- +Thu Aug 26 03:32:26 CEST 2010 - [email protected] + +- Update to 0.148 +- Upstream changelog + - libdw: Accept DWARF 4 format: new functions dwarf_next_unit, + dwarf_offdie_types. New functions dwarf_lineisa, + dwarf_linediscriminator, dwarf_lineop_index. + - libdwfl: Fixes in core-file handling, support cores from PIEs. + When working from build IDs, don't open a named file that mismatches. + - readelf: Handle DWARF 4 formats. + + +------------------------------------------------------------------- +Mon Jun 28 06:38:35 UTC 2010 - [email protected] + +- use %_smp_mflags + +------------------------------------------------------------------- +Tue May 11 20:01:23 UTC 2010 - [email protected] + +- update to version 0.147 (fix bnc#588293) +- dropped patches for 10.3 and older +- dropped elfutils-0.97-ftruncate-mmap-fix, libelf-ignore-NOBITS, test and + build patches. According to jbl these were mistakenly checked in from + home:janblunck:debuginfo:libs/elfutils and the purpose of this project is + no longer known. Absense of any patch header makes confirmation difficult. + +- Upstream changelog: + 0.147 + - libdw: Fixes in CFI handling, best possible handling of bogus CFA + ops. + - libdwfl: Ignore R_*_NONE relocs, works around old (binutils) ld -r + bugs. + + 0.146 + - libdwfl: New function dwfl_core_file_report. + + 0.145 + - Fix build with --disable-dependency-tracking. + - Fix build with most recent glibc headers. + - libelf: More robust to bogus section headers. + - libdw: Fix CFI decoding. + - libdwfl: Fix address bias returned by CFI accessors. Fix core + file module layout identification. + - readelf: Fix CFI decoding. + + 0.144 + - libelf: New function elf_getphdrnum. Now support using more than + 65536 program headers in a file. + - libdw: New function dwarf_aggregate_size for computing (constant) + type sizes, including array_type cases with nontrivial + calculation. ++++ 201 more lines (skipped) ++++ between /dev/null ++++ and /work/SRC/openSUSE:12.3:Update/.elfutils.2935.new/elfutils.changes New: ---- README-BEFORE-ADDING-PATCHES baselibs.conf elfutils-0.137-dwarf-header-check-fix.diff elfutils-0.148-dont-crash.diff elfutils-0.155.tar.bz2 elfutils-aarch64.patch elfutils-check-for-overflow-before-calling-malloc-to-uncompress-data.patch elfutils-no-po-test-build.diff elfutils-portability.patch elfutils-revert-portability-scanf.patch elfutils-robustify.patch elfutils-uninitialized.diff elfutils.changes elfutils.spec libebl-prototype-fix.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ elfutils.spec ++++++ # # spec file for package elfutils # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: elfutils Version: 0.155 Release: 0 Summary: Higher-level library to access ELF License: SUSE-GPL-2.0-with-OSI-exception Group: System/Libraries Url: http://elfutils.fedorahosted.org Source: elfutils-%{version}.tar.bz2 Source1: README-BEFORE-ADDING-PATCHES Source2: baselibs.conf Patch1: elfutils-portability.patch Patch2: elfutils-robustify.patch Patch3: elfutils-no-po-test-build.diff Patch4: libebl-prototype-fix.diff Patch5: elfutils-uninitialized.diff Patch6: elfutils-0.137-dwarf-header-check-fix.diff Patch7: elfutils-0.148-dont-crash.diff Patch8: elfutils-revert-portability-scanf.patch Patch9: elfutils-aarch64.patch Patch10: elfutils-check-for-overflow-before-calling-malloc-to-uncompress-data.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: flex BuildRequires: libbz2-devel BuildRequires: xz-devel BuildRequires: zlib-devel %description This package provides a higher-level library to access ELF files. This is a part of elfutils package. %package -n libasm1 Summary: A collection of utilities and DSOs to handle compiled objects Group: Development/Tools/Other %description -n libasm1 Elfutils is a collection of utilities, including ld (a linker), nm (for listing symbols from object files), size (for listing the section sizes of an object or archive file), strip (for discarding symbols), readline (the see the raw ELF file structures), and elflint (to check for well-formed ELF files). Also included are numerous helper libraries which implement DWARF, ELF, and machine-specific ELF handling. %package -n libasm-devel Summary: A collection of utilities and DSOs to handle compiled objects Group: Development/Tools/Other Requires: glibc-devel Requires: libasm1 = %{version} %description -n libasm-devel Elfutils is a collection of utilities, including ld (a linker), nm (for listing symbols from object files), size (for listing the section sizes of an object or archive file), strip (for discarding symbols), readline (the see the raw ELF file structures), and elflint (to check for well-formed ELF files). Also included are numerous helper libraries which implement DWARF, ELF, and machine-specific ELF handling. %package -n libebl1 Summary: A collection of utilities and DSOs to handle compiled objects Group: Development/Tools/Other Provides: libebl = %{version} Obsoletes: libebl < %{version} %description -n libebl1 Elfutils is a collection of utilities, including ld (a linker), nm (for listing symbols from object files), size (for listing the section sizes of an object or archive file), strip (for discarding symbols), readline (the see the raw ELF file structures), and elflint (to check for well-formed ELF files). Also included are numerous helper libraries which implement DWARF, ELF, and machine-specific ELF handling. %package -n libebl-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libdw-devel = %{version} Requires: libebl1 = %{version} %description -n libebl-devel This package contains all necessary include files and libraries needed to develop applications that require these. %package -n libelf1 Summary: Library to read and write ELF files Group: System/Libraries %description -n libelf1 This package provides a high-level library to read and write ELF files. This is a part of elfutils package. %package -n libelf-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libelf1 = %{version} Conflicts: libelf0-devel %description -n libelf-devel This package contains all necessary include files and libraries needed to develop applications that require these. %package -n libdw1 Summary: Library to access DWARF debugging information Group: System/Libraries %description -n libdw1 This package provides a high-level library to access the DWARF debugging information. This is a part of elfutils package. %package -n libdw-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libdw1 = %{version} Requires: libelf-devel = %{version} %description -n libdw-devel This package contains all necessary include files and libraries needed to develop applications that require these. %prep %setup -q -n elfutils-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 -R %patch9 -p1 %patch10 -p1 %build # Change DATE/TIME macros to use last change time of elfutils.changes # See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" TIME="\"$(date -d "${modified}" "+%%R")\"" find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + %configure --program-prefix=eu- make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install # remove unneeded files rm -f $RPM_BUILD_ROOT%{_libdir}/*.la ls -lR $RPM_BUILD_ROOT%{_libdir}/libelf* %post -n libebl1 -p /sbin/ldconfig %post -n libelf1 -p /sbin/ldconfig %post -n libdw1 -p /sbin/ldconfig %postun -n libebl1 -p /sbin/ldconfig %postun -n libelf1 -p /sbin/ldconfig %postun -n libdw1 -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS NOTES README THANKS TODO %{_bindir}/* %files -n libasm1 %defattr(-,root,root) %{_libdir}/libasm.so.* %{_libdir}/libasm-%{version}.so %files -n libasm-devel %defattr(-,root,root) %{_libdir}/libasm.so %{_libdir}/libasm.a %dir %{_includedir}/elfutils %{_includedir}/elfutils/libasm.h %files -n libebl1 %defattr(-,root,root) %{_libdir}/elfutils %files -n libebl-devel %defattr(-,root,root) %{_libdir}/libebl.a %dir %{_includedir}/elfutils %{_includedir}/elfutils/libebl.h %files -n libelf1 %defattr(-,root,root) %{_libdir}/libelf.so.* %{_libdir}/libelf-%{version}.so %files -n libelf-devel %defattr(-,root,root) %{_libdir}/libelf.so %{_libdir}/libelf.a #%{_libdir}/libelf_pic.a %{_includedir}/libelf.h %{_includedir}/gelf.h %{_includedir}/nlist.h %dir %{_includedir}/elfutils %{_includedir}/elfutils/elf-knowledge.h %{_includedir}/elfutils/version.h %files -n libdw1 %defattr(-,root,root) %{_libdir}/libdw.so.* %{_libdir}/libdw-%{version}.so %files -n libdw-devel %defattr(-,root,root) %{_libdir}/libdw.a %{_libdir}/libdw.so %{_includedir}/dwarf.h %dir %{_includedir}/elfutils %{_includedir}/elfutils/libdw.h %{_includedir}/elfutils/libdwfl.h %changelog ++++++ README-BEFORE-ADDING-PATCHES ++++++ All patches need to have a patch description header similar to what is used in SUSE kernel git tree. Patches added without this will be reverted. From: Name <email> Subject: Summary of fix Date: date References: bnc#xxxxxx (bugzilla reference) Upstream: upstream revision or a description of why it is not upstream Signed-Off-by: Name <email> (same as From: if committer is patch author) Short paragraph describing problem/fix. References to upstream repo/commit-id if applicable. ++++++ baselibs.conf ++++++ libasm1 libebl1 libelf1 libdw1 libelf-devel requires -libelf-<targettype> requires "libelf1-<targettype> = <version>" conflicts "libelf0-devel-<targettype>" ++++++ elfutils-0.137-dwarf-header-check-fix.diff ++++++ From: Takashi Iwai <[email protected]> Subject: Fix for kernel debuginfo files References: https://bugzilla.novell.com/show_bug.cgi?id=468247, comments 17-20 References: https://bugzilla.novell.com/show_bug.cgi?id=433182 Above BZ originally occured with Systemtap testsuite (stmt_rel.exp). # stap -e 'probe kernel.statement("bio_put@fs/bio.c:*") {}' semantic error: libdw failure (dwarf_getsrcfiles): invalid DWARF ... --- libdw/dwarf_getsrclines.c | 2 ++ 1 file changed, 2 insertions(+) Index: elfutils-0.155/libdw/dwarf_getsrclines.c =================================================================== --- elfutils-0.155.orig/libdw/dwarf_getsrclines.c +++ elfutils-0.155/libdw/dwarf_getsrclines.c @@ -296,8 +296,10 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwa /* Consistency check. */ if (unlikely (linep != header_start + header_length)) { +#if 0 __libdw_seterrno (DWARF_E_INVALID_DWARF); goto out; +#endif } /* We are about to process the statement program. Initialize the ++++++ elfutils-0.148-dont-crash.diff ++++++ From: Stephan Kulow <[email protected]> Avoid crash if the header is 0 Index: elfutils-0.155/libdw/dwarf_getcfi_elf.c =================================================================== --- elfutils-0.155.orig/libdw/dwarf_getcfi_elf.c +++ elfutils-0.155/libdw/dwarf_getcfi_elf.c @@ -76,7 +76,7 @@ parse_eh_frame_hdr (const uint8_t *hdr, { const uint8_t *h = hdr; - if (*h++ != 1) /* version */ + if (!h || *h++ != 1) /* version */ return (void *) -1l; uint8_t eh_frame_ptr_encoding = *h++; ++++++ elfutils-aarch64.patch ++++++ Index: elfutils-0.155/config/config.guess =================================================================== --- elfutils-0.155.orig/config/config.guess +++ elfutils-0.155/config/config.guess @@ -17,9 +17,7 @@ timestamp='2012-01-01' # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program; if not, see <http://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -202,6 +200,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} @@ -279,7 +281,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit ;; + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; @@ -863,6 +868,13 @@ EOF i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; @@ -1196,6 +1208,9 @@ EOF BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; @@ -1251,7 +1266,10 @@ EOF NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; - NSE-?:NONSTOP_KERNEL:*:*) + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) @@ -1320,11 +1338,11 @@ EOF i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; esac -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - eval $set_cc_for_build cat >$dummy.c <<EOF #ifdef _SEQUENT_ Index: elfutils-0.155/config/config.sub =================================================================== --- elfutils-0.155.orig/config/config.sub +++ elfutils-0.155/config/config.sub @@ -21,9 +21,7 @@ timestamp='2012-01-01' # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program; if not, see <http://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -223,6 +221,12 @@ case $os in -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; -lynx*) os=-lynxos ;; @@ -341,6 +345,21 @@ case $basic_machine in basic_machine=armel-unknown ;; + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. @@ -818,6 +837,10 @@ case $basic_machine in basic_machine=i386-pc os=-msys ;; + msys) + basic_machine=i386-pc + os=-msys + ;; mvs) basic_machine=i370-ibm os=-mvs @@ -826,6 +849,10 @@ case $basic_machine in basic_machine=le32-unknown os=-nacl ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; ncr3000) basic_machine=i486-ncr os=-sysv4 @@ -896,6 +923,12 @@ case $basic_machine in nse-tandem) basic_machine=nse-tandem ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; nsr-tandem) basic_machine=nsr-tandem ;; @@ -1078,6 +1111,9 @@ case $basic_machine in strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; sun2) basic_machine=m68000-sun ;; @@ -1208,6 +1244,9 @@ case $basic_machine in xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; ymp) basic_machine=ymp-cray os=-unicos @@ -1490,6 +1529,8 @@ case $os in ;; -nacl*) ;; + -nacl*) + ;; -none) ;; *) ++++++ elfutils-check-for-overflow-before-calling-malloc-to-uncompress-data.patch ++++++ From: Mark Wielaard <[email protected]> Subject: Check for overflow before calling malloc to uncompress data. Date: Wed Apr 9 11:33:23 2014 +0200 Git-commit: 7f1eec317db79627b473c5b149a22a1b20d1f68f References: CVE-2014-0172, bnc#872785 Signed-off-by: Tony Jones <[email protected]> CVE-2014-0172 Check for overflow before calling malloc to uncompress data. https://bugzilla.redhat.com/show_bug.cgi?id=1085663 Reported-by: Florian Weimer <[email protected]> Signed-off-by: Mark Wielaard <[email protected]> --- libdw/dwarf_begin_elf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- a/libdw/dwarf_begin_elf.c +++ b/libdw/dwarf_begin_elf.c @@ -1,5 +1,5 @@ /* Create descriptor from ELF descriptor for processing file. - Copyright (C) 2002-2011 Red Hat, Inc. + Copyright (C) 2002-2011, 2014 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. @@ -288,6 +288,12 @@ check_section (Dwarf *result, GElf_Ehdr memcpy (&size, data->d_buf + 4, sizeof size); size = be64toh (size); + /* Check for unsigned overflow so malloc always allocated + enough memory for both the Elf_Data header and the + uncompressed section data. */ + if (unlikely (sizeof (Elf_Data) + size < size)) + break; + Elf_Data *zdata = malloc (sizeof (Elf_Data) + size); if (unlikely (zdata == NULL)) break; ++++++ elfutils-no-po-test-build.diff ++++++ From: unknown Upstream: no Subject: do not build po and tests components Index: elfutils-0.155/Makefile.am =================================================================== --- elfutils-0.155.orig/Makefile.am +++ elfutils-0.155/Makefile.am @@ -24,7 +24,7 @@ pkginclude_HEADERS = version.h # Add doc back when we have some real content. SUBDIRS = config m4 lib libelf libebl libdwfl libdw libcpu libasm backends \ - src po tests + src EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ COPYING COPYING-GPLV2 COPYING-LGPLV3 Index: elfutils-0.155/Makefile.in =================================================================== --- elfutils-0.155.orig/Makefile.in +++ elfutils-0.155/Makefile.in @@ -259,7 +259,7 @@ pkginclude_HEADERS = version.h # Add doc back when we have some real content. SUBDIRS = config m4 lib libelf libebl libdwfl libdw libcpu libasm backends \ - src po tests + src EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ COPYING COPYING-GPLV2 COPYING-LGPLV3 ++++++ elfutils-portability.patch ++++++ ++++ 1768 lines (skipped) ++++++ elfutils-revert-portability-scanf.patch ++++++ Index: elfutils-0.155/tests/line2addr.c =================================================================== --- elfutils-0.155.orig/tests/line2addr.c +++ elfutils-0.155/tests/line2addr.c @@ -124,7 +124,7 @@ main (int argc, char *argv[]) { struct args a = { .arg = argv[cnt] }; - switch (sscanf (a.arg, "%m[^:]:%d", &a.file, &a.line)) + switch (sscanf (a.arg, "%a[^:]:%d", &a.file, &a.line)) { default: case 0: Index: elfutils-0.155/src/addr2line.c =================================================================== --- elfutils-0.155.orig/src/addr2line.c +++ elfutils-0.155/src/addr2line.c @@ -447,10 +447,10 @@ handle_address (const char *string, Dwfl bool parsed = false; int i, j; char *name = NULL; - if (sscanf (string, "(%m[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2 + if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2 && string[i] == '\0') parsed = adjust_to_section (name, &addr, dwfl); - switch (sscanf (string, "%m[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j)) + switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j)) { default: break; ++++++ elfutils-robustify.patch ++++++ ++++ 1810 lines (skipped) ++++++ elfutils-uninitialized.diff ++++++ Index: elfutils-0.155/libdwfl/linux-kernel-modules.c =================================================================== --- elfutils-0.155.orig/libdwfl/linux-kernel-modules.c +++ elfutils-0.155/libdwfl/linux-kernel-modules.c @@ -601,8 +601,8 @@ check_module_notes (Dwfl_Module *mod) int dwfl_linux_kernel_report_kernel (Dwfl *dwfl) { - Dwarf_Addr start; - Dwarf_Addr end; + Dwarf_Addr start = 0; + Dwarf_Addr end = 0; inline Dwfl_Module *report (void) { return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end); ++++++ libebl-prototype-fix.diff ++++++ From: unknown Upstream: no References: none Update from K&R to ANSI prototype. This fix should go upstream. Index: elfutils-0.155/libebl/eblopenbackend.c =================================================================== --- elfutils-0.155.orig/libebl/eblopenbackend.c +++ elfutils-0.155/libebl/eblopenbackend.c @@ -249,10 +249,7 @@ fill_defaults (Ebl *result) /* Find an appropriate backend for the file associated with ELF. */ static Ebl * -openbackend (elf, emulation, machine) - Elf *elf; - const char *emulation; - GElf_Half machine; +openbackend (Elf *elf, const char *emulation, GElf_Half machine) { Ebl *result; size_t cnt; Index: elfutils-0.155/lib/dynamicsizehash.c =================================================================== --- elfutils-0.155.orig/lib/dynamicsizehash.c +++ elfutils-0.155/lib/dynamicsizehash.c @@ -44,10 +44,7 @@ static size_t -lookup (htab, hval, val) - NAME *htab; - HASHTYPE hval; - TYPE val __attribute__ ((unused)); +lookup (NAME *htab, HASHTYPE hval, TYPE val __attribute__((unused))) { /* First hash function: simply take the modul but prevent zero. */ size_t idx = 1 + hval % htab->size; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
