|
@@ -34,7 +34,7 @@
|
|
|
Summary: A GNU collection of binary utilities.
|
|
|
Summary(ja): GNU 版バイナリユーティリティ集
|
|
|
Name: binutils
|
|
|
-Version: 2.31.1
|
|
|
+Version: 2.32
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: GPLv3+
|
|
|
Group: Development/Tools
|
|
@@ -48,7 +48,7 @@ Packager: kenta, shaolin, inagaki
|
|
|
# The ftp.kernel.org/pub/linux/devel/binutils/ page is (temporarily) unavailable
|
|
|
# so we use the GNU site instead.
|
|
|
# Source: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
|
|
|
-Source: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz
|
|
|
+Source: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz
|
|
|
Source2: binutils-2.19.50.0.1-output-format.sed
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
@@ -70,7 +70,7 @@ Patch02: binutils-2.25-version.patch
|
|
|
# Purpose: Exports the demangle.h header file (associated with the libiberty
|
|
|
# sources) with the binutils-devel rpm.
|
|
|
# Lifetime: Permanent. This is a RHEL/Fedora specific patch.
|
|
|
-Patch03: binutils-2.31-export-demangle.h.patch
|
|
|
+Patch03: binutils-export-demangle.h.patch
|
|
|
|
|
|
# Purpose: Disables the check in the BFD library's bfd.h header file that
|
|
|
# config.h has been included before the bfd.h header. See BZ
|
|
@@ -83,11 +83,6 @@ Patch03: binutils-2.31-export-demangle.h.patch
|
|
|
# order.
|
|
|
Patch04: binutils-2.22.52.0.4-no-config-h-check.patch
|
|
|
|
|
|
-# Purpose: Import H.J.Lu's Kernel LTO patch.
|
|
|
-# Lifetime: Permanent, but needs continual updating.
|
|
|
-# FIXME: Try removing....
|
|
|
-# Patch05: binutils-2.26-lto.patch
|
|
|
-
|
|
|
# Purpose: Include the filename concerned in readelf error messages. This
|
|
|
# makes readelf's output more helpful when it is run on multiple
|
|
|
# input files.
|
|
@@ -95,7 +90,7 @@ Patch04: binutils-2.22.52.0.4-no-config-h-check.patch
|
|
|
# making it better (IMHO) but also potentially breaking tools that
|
|
|
# depend upon readelf's current format. Hence it remains a local
|
|
|
# patch.
|
|
|
-Patch06: binutils-2.29-filename-in-error-messages.patch
|
|
|
+Patch05: binutils-2.29-filename-in-error-messages.patch
|
|
|
|
|
|
# Purpose: Disable an x86/x86_64 optimization that moves functions from the
|
|
|
# PLT into the GOTPLT for faster access. This optimization is
|
|
@@ -103,7 +98,7 @@ Patch06: binutils-2.29-filename-in-error-messages.patch
|
|
|
# as ltrace and LD_AUDIT. See BZs 1452111 and 1333481.
|
|
|
# Lifetime: Permanent. But it should not be.
|
|
|
# FIXME: Replace with a configure time option.
|
|
|
-Patch07: binutils-2.29-revert-PLT-elision.patch
|
|
|
+Patch06: binutils-2.29-revert-PLT-elision.patch
|
|
|
|
|
|
# Purpose: Changes readelf so that when it displays extra information about
|
|
|
# a symbol, this information is placed at the end of the line.
|
|
@@ -111,80 +106,106 @@ Patch07: binutils-2.29-revert-PLT-elision.patch
|
|
|
# FIXME: The proper fix would be to update the scripts that are expecting
|
|
|
# a fixed output from readelf. But it seems that some of them are
|
|
|
# no longer being maintained.
|
|
|
-Patch08: binutils-readelf-other-sym-info.patch
|
|
|
+Patch07: binutils-readelf-other-sym-info.patch
|
|
|
|
|
|
# Purpose: Do not create PLT entries for AARCH64 IFUNC symbols referenced in
|
|
|
# debug sections.
|
|
|
# Lifetime: Permanent.
|
|
|
# FIXME: Find related bug. Decide on permanency.
|
|
|
-Patch09: binutils-2.27-aarch64-ifunc.patch
|
|
|
-
|
|
|
-# Purpose: Fix linker testsuite failures
|
|
|
-# Lifetime: Fixed in 2.32 (probably)
|
|
|
-Patch10: binutils-fix-testsuite-failures.patch
|
|
|
-
|
|
|
-# Purpose: Revert fix for PR 23161 which was placing unversioned section
|
|
|
-# symbols (_edata, _end, __bss_start) into shared libraries.
|
|
|
-# See also PR 23499 and BZ 1614920
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-# Patch11: binutils-do-not-provide-shared-section-symbols.patch
|
|
|
-Patch11: binutils-clear-version-info.patch
|
|
|
-
|
|
|
-# Purpose: Stop gold from complaining about relocs in the .gnu.build.attribute
|
|
|
-# section that reference symbols in discarded sections.
|
|
|
-# Lifetime: Fixed in 2.32 (maybe)
|
|
|
-Patch12: binutils-gold-ignore-discarded-note-relocs.patch
|
|
|
-
|
|
|
-# Purpose: Improve partial relro support for 64-bit s/390.
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-Patch13: binutils-s390-partial-relro.patch
|
|
|
-
|
|
|
-# Purpose: Merge .gnu.build.attribute sections into a single section.
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-Patch14: binutils-merge-attribute-sections.patch
|
|
|
-
|
|
|
-# Purpose: Improve objcopy's --merge-notes option.
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-Patch15: binutils-note-merge-improvements.patch
|
|
|
-
|
|
|
-# Purpose: Detect and report corrupt symbol version information.
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-Patch16: binutils-detect-corrupt-sym-version-info.patch
|
|
|
-
|
|
|
-# Purpose: Delay the evaluation of linker script constants until
|
|
|
-# after the configuration options have been set.
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-Patch17: binutils-delay-ld-script-constant-eval.patch
|
|
|
-
|
|
|
-# Purpose: Stop readelf's reports of gaps in build notes - they are unreliable.
|
|
|
-# Lifetime: Unknown.
|
|
|
-Patch18: binutils-disable-readelf-gap-reports.patch
|
|
|
+Patch08: binutils-2.27-aarch64-ifunc.patch
|
|
|
|
|
|
# Purpose: Stop the binutils from statically linking with libstdc++.
|
|
|
# Lifetime: Permanent.
|
|
|
-Patch20: binutils-do-not-link-with-static-libstdc++.patch
|
|
|
+Patch09: binutils-do-not-link-with-static-libstdc++.patch
|
|
|
|
|
|
# Purpose: Add a .attach_to_group pseudo-op to the assembler for
|
|
|
# use by the annobin gcc plugin.
|
|
|
# Lifetime: Permanent.
|
|
|
-Patch21: binutils-attach-to-group.patch
|
|
|
+Patch10: binutils-attach-to-group.patch
|
|
|
|
|
|
-# Purpose: Fix a potential buffer overrun when parsing a corrupt ELF file.
|
|
|
-# Lifetime: Fixed in 2.32.
|
|
|
-Patch22: binutils-CVE-2018-17358.patch
|
|
|
+# Purpose: Stop gold from complaining about relocs in the .gnu.build.attribute
|
|
|
+# section that reference symbols in discarded sections.
|
|
|
+# Lifetime: Fixed in 2.33 (maybe)
|
|
|
+Patch11: binutils-gold-ignore-discarded-note-relocs.patch
|
|
|
|
|
|
# Purpose: Allow OS specific sections in section groups.
|
|
|
-# Lifetime: Might be fixed in 2.32
|
|
|
-Patch23: binutils-special-sections-in-groups.patch
|
|
|
-
|
|
|
-# Purpose: Stop gold from issuing warnings about dropped version
|
|
|
-# information, unless explicitly requested otherwise.
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-Patch24: binutils-gold-discard-version-info.patch
|
|
|
-
|
|
|
-# Purpose: Fix a memory leak reading minisymbols.
|
|
|
-# Lifetime: Fixed in 2.32
|
|
|
-Patch25: binutils-CVE-2018-20002.patch
|
|
|
+# Lifetime: Might be fixed in 2.33
|
|
|
+Patch12: binutils-special-sections-in-groups.patch
|
|
|
+
|
|
|
+# Purpose: Fix linker testsuite failures.
|
|
|
+# Lifetime: Fixed in 2.33 (possibly)
|
|
|
+Patch13: binutils-fix-testsuite-failures.patch
|
|
|
+
|
|
|
+# Purpose: Improve objdump's handling of corrupt input files.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch14: binutils-CVE-2019-9073.patch
|
|
|
+
|
|
|
+# Purpose: Stop illegal memory access parsing corrupt PE files.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch15: binutils-CVE-2019-9074.patch
|
|
|
+
|
|
|
+# Purpose: Stop illegal memory access parsing corrupt archives.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch16: binutils-CVE-2019-9075.patch
|
|
|
+
|
|
|
+# Purpose: Stop illegal memory access parsing a corrupt MIPS binary.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch17: binutils-CVE-2019-9077.patch
|
|
|
+
|
|
|
+# Purpose: Stop a seg-fault when disassembling an EFI binary.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch18: binutils-disassembling-efi-files.patch
|
|
|
+
|
|
|
+# Purpose: Fix a stack exhaustion problem in libiberty's name demangling code.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch19: binutils-CVE-2019-9071.patch
|
|
|
+
|
|
|
+# Purpose: Have the GOLD linker for AArch64 generate PLT entries for MOVW_ABS
|
|
|
+# relocations if necessary.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch20: binutils-aarch64-gold-PLT-for-MOVW_ABS.patch
|
|
|
+
|
|
|
+# Purpose: Stop gold from aborting when input sections with the same name
|
|
|
+# have different flags.
|
|
|
+# Lifetime: Fixed in 2.33 (probably)
|
|
|
+Patch21: binutils-gold-mismatched-section-flags.patch
|
|
|
+
|
|
|
+# Purpose: Corrcect a memory corruption when generating relocs for build
|
|
|
+# notes in the assembler.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch22: binutils-gas-build-note-relocs.patch
|
|
|
+
|
|
|
+# Purpose: Stop the BFD library from issueing warning messages about allocated
|
|
|
+# sections being found outside of loadable segments, if they are
|
|
|
+# found inside debuginfo files.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch23: binutils-do-not-warn-about-debuginfo-files.patch
|
|
|
+
|
|
|
+# Purpose: Stops the linker from merging section groups with different exclusion flags.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch24: binutils-do-not-merge-differing-SHF_EXCLUDE-groups.patch
|
|
|
+
|
|
|
+# Purpose: Fix -Map and property merging
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch25: binutils-rh1736114.patch
|
|
|
+
|
|
|
+# Purpose: Change objcopy/strip so that they do not complain if the
|
|
|
+# first note in a sequence of build notes is not a version note.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch26: binutils-objcopy-gnu-build-version-notes.patch
|
|
|
+
|
|
|
+# Purpose: Add a check to the GOLD linker for a corrupt input file
|
|
|
+# with a fuzzed section offset.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch27: binutils-CVE-2019-1010204.patch
|
|
|
+
|
|
|
+# Purpose: Add check to libiberty library in order to prevent an integer overflow in the gold linker.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch28: binutils-CVE-2019-14250.patch
|
|
|
+
|
|
|
+# Purpose: Add check to readelf in order to prevent an integer overflow.
|
|
|
+# Lifetime: Fixed in 2.33
|
|
|
+Patch29: binutils-CVE-2019-14444.patch
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
@@ -314,18 +335,13 @@ echo target is %{binutils_target}
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
CARGS=
|
|
|
|
|
|
-case %{binutils_target} in i?86*|sparc*|ppc*|s390*|sh*)
|
|
|
+case %{binutils_target} in i?86*|sparc*|ppc*|s390*|sh*|arm*|aarch64*)
|
|
|
CARGS="$CARGS --enable-64-bit-bfd"
|
|
|
;;
|
|
|
esac
|
|
|
|
|
|
-case %{binutils_target} in ia64*)
|
|
|
- CARGS="$CARGS --enable-targets=i386-linux"
|
|
|
- ;;
|
|
|
-esac
|
|
|
-
|
|
|
-case %{binutils_target} in ppc*|ppc64*)
|
|
|
- CARGS="$CARGS --enable-targets=spu"
|
|
|
+case %{binutils_target} in x86_64*|i?86*|arm*|aarch64*)
|
|
|
+ CARGS="$CARGS --enable-targets=x86_64-pep"
|
|
|
;;
|
|
|
esac
|
|
|
|
|
@@ -346,10 +362,11 @@ CFLAGS="$CFLAGS -O0 -ggdb2"
|
|
|
--build=%{_target_platform} --host=%{_target_platform} \
|
|
|
--target=%{binutils_target} \
|
|
|
%ifarch %gold_arches
|
|
|
- --enable-gold=default --enable-ld \
|
|
|
+ --enable-gold=default \
|
|
|
%else
|
|
|
--enable-gold=no \
|
|
|
%endif
|
|
|
+ --enable-ld \
|
|
|
%if %{isnative}
|
|
|
--with-sysroot=/ \
|
|
|
%else
|
|
@@ -623,6 +640,12 @@ fi
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Sep 22 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.32-1
|
|
|
+- updated to 2.32.
|
|
|
+- dropped Patch11, 13-22, 24 and 25: fixed in upstream.
|
|
|
+- renumbered patches.
|
|
|
+- imported Patch14-29 from rawhide.
|
|
|
+
|
|
|
* Tue Jan 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.31.1-1
|
|
|
- updated to 2.31.1.
|
|
|
- dropped Patch1-9.
|