Hello community, here is the log from the commit of package binutils for openSUSE:Factory checked in at 2017-03-05 17:49:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/binutils (Old) and /work/SRC/openSUSE:Factory/.binutils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "binutils" Sun Mar 5 17:49:00 2017 rev:114 rq:460174 version:2.27 Changes: -------- --- /work/SRC/openSUSE:Factory/binutils/binutils.changes 2017-02-13 00:24:52.745373287 +0100 +++ /work/SRC/openSUSE:Factory/.binutils.new/binutils.changes 2017-03-05 17:49:00.827119195 +0100 @@ -1,0 +2,6 @@ +Fri Feb 24 10:38:24 UTC 2017 - [email protected] + +- Add binutils-bso21193.diff to fix section alignment on + .gnu_debuglink. [bso#21193] + +------------------------------------------------------------------- cross-aarch64-binutils.changes: same change cross-arm-binutils.changes: same change cross-avr-binutils.changes: same change cross-epiphany-binutils.changes: same change cross-hppa-binutils.changes: same change cross-hppa64-binutils.changes: same change cross-i386-binutils.changes: same change cross-ia64-binutils.changes: same change cross-m68k-binutils.changes: same change cross-mips-binutils.changes: same change cross-ppc-binutils.changes: same change cross-ppc64-binutils.changes: same change cross-ppc64le-binutils.changes: same change cross-rx-binutils.changes: same change cross-s390-binutils.changes: same change cross-s390x-binutils.changes: same change cross-sparc-binutils.changes: same change cross-sparc64-binutils.changes: same change cross-spu-binutils.changes: same change cross-x86_64-binutils.changes: same change New: ---- binutils-bso21193.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ binutils.spec ++++++ --- /var/tmp/diff_new_pack.V2aHBW/_old 2017-03-05 17:49:10.117804227 +0100 +++ /var/tmp/diff_new_pack.V2aHBW/_new 2017-03-05 17:49:10.121803661 +0100 @@ -101,6 +101,8 @@ Patch24: refine_.cfi_sections_check_to_only_consider_compact_eh_frame.patch Patch34: aarch64-common-pagesize.patch Patch35: aarch64-alignment-frags.patch +# Backport 758d96d834ba725461a +Patch36: binutils-bso21193.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -179,6 +181,7 @@ %patch24 -p1 %patch34 -p1 %patch35 -p1 +%patch36 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 ++++++ cross-aarch64-binutils.spec ++++++ --- /var/tmp/diff_new_pack.V2aHBW/_old 2017-03-05 17:49:10.141800832 +0100 +++ /var/tmp/diff_new_pack.V2aHBW/_new 2017-03-05 17:49:10.149799699 +0100 @@ -104,6 +104,8 @@ Patch24: refine_.cfi_sections_check_to_only_consider_compact_eh_frame.patch Patch34: aarch64-common-pagesize.patch Patch35: aarch64-alignment-frags.patch +# Backport 758d96d834ba725461a +Patch36: binutils-bso21193.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -182,6 +184,7 @@ %patch24 -p1 %patch34 -p1 %patch35 -p1 +%patch36 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 cross-arm-binutils.spec: same change cross-avr-binutils.spec: same change cross-epiphany-binutils.spec: same change cross-hppa-binutils.spec: same change cross-hppa64-binutils.spec: same change cross-i386-binutils.spec: same change cross-ia64-binutils.spec: same change cross-m68k-binutils.spec: same change cross-mips-binutils.spec: same change cross-ppc-binutils.spec: same change cross-ppc64-binutils.spec: same change cross-ppc64le-binutils.spec: same change cross-rx-binutils.spec: same change cross-s390-binutils.spec: same change cross-s390x-binutils.spec: same change cross-sparc-binutils.spec: same change cross-sparc64-binutils.spec: same change cross-spu-binutils.spec: same change cross-x86_64-binutils.spec: same change ++++++ binutils-bso21193.diff ++++++ commit 758d96d834ba725461abf4be36df9f13e0815054 Author: Nick Clifton <[email protected]> Date: Wed Feb 22 17:28:33 2017 +0000 Align .gnu_debuglink sections on a 4-byte boundary. PR binutils/21193 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly created section 4-byte alignment. diff --git a/bfd/opncls.c b/bfd/opncls.c index 2ab7dfe..4137a3b 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -1645,6 +1645,8 @@ bfd_create_gnu_debuglink_section (bfd *abfd, const char *filename) if (sect == NULL) return NULL; + /* Compute the size of the section. Allow for the CRC after the filename, + and padding so that it will start on a 4-byte boundary. */ debuglink_size = strlen (filename) + 1; debuglink_size += 3; debuglink_size &= ~3; @@ -1654,6 +1656,11 @@ bfd_create_gnu_debuglink_section (bfd *abfd, const char *filename) /* XXX Should we delete the section from the bfd ? */ return NULL; + /* PR 21193: Ensure that the section has 4-byte alignment for the CRC. + Note - despite the name of the function being called, we are + setting an alignment power, not a byte alignment value. */ + bfd_set_section_alignment (abfd, sect, 2); + return sect; }
