diff --git a/binutils.changes b/binutils.changes index 887f08d..3f6e057 100644 --- a/binutils.changes +++ b/binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/binutils.spec b/binutils.spec index 2433011..e8759ff 100644 --- a/binutils.spec +++ b/binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -94,7 +94,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -169,6 +171,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-aarch64-binutils.changes b/cross-aarch64-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-aarch64-binutils.changes +++ b/cross-aarch64-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-aarch64-binutils.spec b/cross-aarch64-binutils.spec index ebc27ae..b90e0bd 100644 --- a/cross-aarch64-binutils.spec +++ b/cross-aarch64-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-arm-binutils.changes b/cross-arm-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-arm-binutils.changes +++ b/cross-arm-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-arm-binutils.spec b/cross-arm-binutils.spec index 443e51b..8bcb96f 100644 --- a/cross-arm-binutils.spec +++ b/cross-arm-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-avr-binutils.changes b/cross-avr-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-avr-binutils.changes +++ b/cross-avr-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-avr-binutils.spec b/cross-avr-binutils.spec index 65a4f81..0c15a97 100644 --- a/cross-avr-binutils.spec +++ b/cross-avr-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-epiphany-binutils.changes b/cross-epiphany-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-epiphany-binutils.changes +++ b/cross-epiphany-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-epiphany-binutils.spec b/cross-epiphany-binutils.spec index d21150a..351545e 100644 --- a/cross-epiphany-binutils.spec +++ b/cross-epiphany-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-hppa-binutils.changes b/cross-hppa-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-hppa-binutils.changes +++ b/cross-hppa-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-hppa-binutils.spec b/cross-hppa-binutils.spec index 06c1f30..999bdc2 100644 --- a/cross-hppa-binutils.spec +++ b/cross-hppa-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-hppa64-binutils.changes b/cross-hppa64-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-hppa64-binutils.changes +++ b/cross-hppa64-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-hppa64-binutils.spec b/cross-hppa64-binutils.spec index 566a428..d7d6907 100644 --- a/cross-hppa64-binutils.spec +++ b/cross-hppa64-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-i386-binutils.changes b/cross-i386-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-i386-binutils.changes +++ b/cross-i386-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-i386-binutils.spec b/cross-i386-binutils.spec index 5158535..9754eda 100644 --- a/cross-i386-binutils.spec +++ b/cross-i386-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-ia64-binutils.changes b/cross-ia64-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-ia64-binutils.changes +++ b/cross-ia64-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-ia64-binutils.spec b/cross-ia64-binutils.spec index f87b5a4..8c5c15a 100644 --- a/cross-ia64-binutils.spec +++ b/cross-ia64-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-m68k-binutils.changes b/cross-m68k-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-m68k-binutils.changes +++ b/cross-m68k-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-m68k-binutils.spec b/cross-m68k-binutils.spec index 90bd9d3..477e739 100644 --- a/cross-m68k-binutils.spec +++ b/cross-m68k-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-mips-binutils.changes b/cross-mips-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-mips-binutils.changes +++ b/cross-mips-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-mips-binutils.spec b/cross-mips-binutils.spec index fd452b8..f4f7a40 100644 --- a/cross-mips-binutils.spec +++ b/cross-mips-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-ppc-binutils.changes b/cross-ppc-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-ppc-binutils.changes +++ b/cross-ppc-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-ppc-binutils.spec b/cross-ppc-binutils.spec index 437fe0e..36b8c71 100644 --- a/cross-ppc-binutils.spec +++ b/cross-ppc-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-ppc64-binutils.changes b/cross-ppc64-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-ppc64-binutils.changes +++ b/cross-ppc64-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-ppc64-binutils.spec b/cross-ppc64-binutils.spec index a0337dd..402d106 100644 --- a/cross-ppc64-binutils.spec +++ b/cross-ppc64-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-ppc64le-binutils.changes b/cross-ppc64le-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-ppc64le-binutils.changes +++ b/cross-ppc64le-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-ppc64le-binutils.spec b/cross-ppc64le-binutils.spec index 7cf976a..cde0844 100644 --- a/cross-ppc64le-binutils.spec +++ b/cross-ppc64le-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-riscv64-binutils.changes b/cross-riscv64-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-riscv64-binutils.changes +++ b/cross-riscv64-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-riscv64-binutils.spec b/cross-riscv64-binutils.spec index e67c409..5242010 100644 --- a/cross-riscv64-binutils.spec +++ b/cross-riscv64-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-rx-binutils.changes b/cross-rx-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-rx-binutils.changes +++ b/cross-rx-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-rx-binutils.spec b/cross-rx-binutils.spec index bdac8eb..20af2c3 100644 --- a/cross-rx-binutils.spec +++ b/cross-rx-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-s390-binutils.changes b/cross-s390-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-s390-binutils.changes +++ b/cross-s390-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-s390-binutils.spec b/cross-s390-binutils.spec index 3fc78c8..0811afc 100644 --- a/cross-s390-binutils.spec +++ b/cross-s390-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-s390x-binutils.changes b/cross-s390x-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-s390x-binutils.changes +++ b/cross-s390x-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-s390x-binutils.spec b/cross-s390x-binutils.spec index 2dae40c..ac7cd2d 100644 --- a/cross-s390x-binutils.spec +++ b/cross-s390x-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-sparc-binutils.changes b/cross-sparc-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-sparc-binutils.changes +++ b/cross-sparc-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-sparc-binutils.spec b/cross-sparc-binutils.spec index e91a058..eeee08a 100644 --- a/cross-sparc-binutils.spec +++ b/cross-sparc-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-sparc64-binutils.changes b/cross-sparc64-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-sparc64-binutils.changes +++ b/cross-sparc64-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-sparc64-binutils.spec b/cross-sparc64-binutils.spec index 924e28a..ba0d307 100644 --- a/cross-sparc64-binutils.spec +++ b/cross-sparc64-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-spu-binutils.changes b/cross-spu-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-spu-binutils.changes +++ b/cross-spu-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-spu-binutils.spec b/cross-spu-binutils.spec index d6a2e08..545f815 100644 --- a/cross-spu-binutils.spec +++ b/cross-spu-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/cross-x86_64-binutils.changes b/cross-x86_64-binutils.changes index 887f08d..3f6e057 100644 --- a/cross-x86_64-binutils.changes +++ b/cross-x86_64-binutils.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 6 13:53:51 UTC 2018 - matz@suse.com + +- Fix the fix for PR23919 [bsc#1118644]: + rename handle-ELF-compressed-header-alignment-correctly-by-.patch + to fix-pr23919-1.diff and add fix-pr23919-2.diff + and fix-pr23919-3.diff . + ------------------------------------------------------------------- Tue Nov 27 12:43:42 UTC 2018 - Martin Liška diff --git a/cross-x86_64-binutils.spec b/cross-x86_64-binutils.spec index 1318ebe..7604d3e 100644 --- a/cross-x86_64-binutils.spec +++ b/cross-x86_64-binutils.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -97,7 +97,9 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch36: binutils-pr22868.diff Patch37: binutils-revert-plt32-in-branches.diff -Patch38: handle-ELF-compressed-header-alignment-correctly-by-.patch +Patch38: fix-pr23919-1.diff +Patch39: fix-pr23919-2.diff +Patch40: fix-pr23919-3.diff Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -172,6 +174,8 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch37 -p1 %endif %patch38 -p1 +%patch39 -p1 +%patch40 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/handle-ELF-compressed-header-alignment-correctly-by-.patch b/fix-pr23919-1.diff similarity index 100% rename from handle-ELF-compressed-header-alignment-correctly-by-.patch rename to fix-pr23919-1.diff diff --git a/fix-pr23919-2.diff b/fix-pr23919-2.diff new file mode 100644 index 0000000..002ebaf --- /dev/null +++ b/fix-pr23919-2.diff @@ -0,0 +1,26 @@ +commit 131a5a648d314cd15811158150573cb40eb3abd0 +Author: H.J. Lu +Date: Tue Nov 27 06:02:36 2018 -0800 + + Initialize *uncompressed_align_pow_p to 0 + + Initialize *uncompressed_align_pow_p to 0 since *uncompressed_align_pow_p + is passed to bfd_is_section_compressed_with_header as uninitialized, + + PR binutils/23919 + * compress.c (bfd_is_section_compressed_with_header): Initialize + *uncompressed_align_pow_p to 0. + +diff --git a/bfd/compress.c b/bfd/compress.c +index 97ea624..18a7597 100644 +--- a/bfd/compress.c ++++ b/bfd/compress.c +@@ -394,6 +394,8 @@ bfd_is_section_compressed_with_header (bfd *abfd, sec_ptr sec, + unsigned int saved = sec->compress_status; + bfd_boolean compressed; + ++ *uncompressed_align_pow_p = 0; ++ + compression_header_size = bfd_get_compression_header_size (abfd, sec); + if (compression_header_size > MAX_COMPRESSION_HEADER_SIZE) + abort (); diff --git a/fix-pr23919-3.diff b/fix-pr23919-3.diff new file mode 100644 index 0000000..7c1d724 --- /dev/null +++ b/fix-pr23919-3.diff @@ -0,0 +1,187 @@ +commit 5f6c22aee74f17393b82934a5682d985672e011a +Author: H.J. Lu +Date: Sun Dec 2 05:42:36 2018 -0800 + + gold: Get alignment of uncompressed section from ch_addralign + + The ELF compression header has a field (ch_addralign) that is set to + the alignment of the uncompressed section. This way the section itself + can have a different alignment than the decompressed section. Update + decompress_input_section to get alignment of the decompressed section + and use it when merging decompressed strings. + + PR binutils/23919 + * merge.cc (Output_merge_string::do_add_input_section): + Get addralign from decompressed_section_contents. + * object.cc (build_compressed_section_map): Set info.addralign. + (Object::decompressed_section_contents): Add a palign + argument and store p->second.addralign in *palign if it isn't + NULL. + * object.h (Compressed_section_info): Add addralign. + (section_is_compressed): Add a palign argument, default it + to NULL, store p->second.addralign in *palign if it isn't NULL. + (Object::decompressed_section_contents): Likewise. + * output.cc (Output_section::add_input_section): Get addralign + from section_is_compressed. + +Index: binutils-2.31/gold/merge.cc +=================================================================== +--- binutils-2.31.orig/gold/merge.cc 2018-12-06 14:52:01.000000000 +0100 ++++ binutils-2.31/gold/merge.cc 2018-12-06 14:52:10.000000000 +0100 +@@ -440,9 +440,11 @@ Output_merge_string::do_add_i + { + section_size_type sec_len; + bool is_new; ++ uint64_t addralign = this->addralign(); + const unsigned char* pdata = object->decompressed_section_contents(shndx, + &sec_len, +- &is_new); ++ &is_new, ++ &addralign); + + const Char_type* p = reinterpret_cast(pdata); + const Char_type* pend = p + sec_len / sizeof(Char_type); +@@ -494,7 +496,7 @@ Output_merge_string::do_add_i + // aligned, so each string within the section must retain the same + // modulo. + uintptr_t init_align_modulo = (reinterpret_cast(pdata) +- & (this->addralign() - 1)); ++ & (addralign - 1)); + bool has_misaligned_strings = false; + + while (p < pend) +@@ -503,7 +505,7 @@ Output_merge_string::do_add_i + + // Within merge input section each string must be aligned. + if (len != 0 +- && ((reinterpret_cast(p) & (this->addralign() - 1)) ++ && ((reinterpret_cast(p) & (addralign - 1)) + != init_align_modulo)) + has_misaligned_strings = true; + +Index: binutils-2.31/gold/object.cc +=================================================================== +--- binutils-2.31.orig/gold/object.cc 2018-12-06 14:52:01.000000000 +0100 ++++ binutils-2.31/gold/object.cc 2018-12-06 14:52:10.000000000 +0100 +@@ -751,11 +751,13 @@ build_compressed_section_map( + const unsigned char* contents = + obj->section_contents(i, &len, false); + uint64_t uncompressed_size; ++ Compressed_section_info info; + if (is_zcompressed) + { + // Skip over the ".zdebug" prefix. + name += 7; + uncompressed_size = get_uncompressed_size(contents, len); ++ info.addralign = shdr.get_sh_addralign(); + } + else + { +@@ -763,8 +765,8 @@ build_compressed_section_map( + name += 6; + elfcpp::Chdr chdr(contents); + uncompressed_size = chdr.get_ch_size(); ++ info.addralign = chdr.get_ch_addralign(); + } +- Compressed_section_info info; + info.size = convert_to_section_size_type(uncompressed_size); + info.flag = shdr.get_sh_flags(); + info.contents = NULL; +@@ -3060,7 +3062,8 @@ const unsigned char* + Object::decompressed_section_contents( + unsigned int shndx, + section_size_type* plen, +- bool* is_new) ++ bool* is_new, ++ uint64_t* palign) + { + section_size_type buffer_size; + const unsigned char* buffer = this->do_section_contents(shndx, &buffer_size, +@@ -3087,6 +3090,8 @@ Object::decompressed_section_contents( + { + *plen = uncompressed_size; + *is_new = false; ++ if (palign != NULL) ++ *palign = p->second.addralign; + return p->second.contents; + } + +@@ -3108,6 +3113,8 @@ Object::decompressed_section_contents( + // once in this pass. + *plen = uncompressed_size; + *is_new = true; ++ if (palign != NULL) ++ *palign = p->second.addralign; + return uncompressed_data; + } + +Index: binutils-2.31/gold/object.h +=================================================================== +--- binutils-2.31.orig/gold/object.h 2018-12-06 14:52:01.000000000 +0100 ++++ binutils-2.31/gold/object.h 2018-12-06 14:52:10.000000000 +0100 +@@ -373,6 +373,7 @@ struct Compressed_section_info + { + section_size_type size; + elfcpp::Elf_Xword flag; ++ uint64_t addralign; + const unsigned char* contents; + }; + typedef std::map Compressed_section_map; +@@ -808,7 +809,8 @@ class Object + + bool + section_is_compressed(unsigned int shndx, +- section_size_type* uncompressed_size) const ++ section_size_type* uncompressed_size, ++ elfcpp::Elf_Xword* palign = NULL) const + { + if (this->compressed_sections_ == NULL) + return false; +@@ -818,6 +820,8 @@ class Object + { + if (uncompressed_size != NULL) + *uncompressed_size = p->second.size; ++ if (palign != NULL) ++ *palign = p->second.addralign; + return true; + } + return false; +@@ -828,7 +832,7 @@ class Object + // by the caller. + const unsigned char* + decompressed_section_contents(unsigned int shndx, section_size_type* plen, +- bool* is_cached); ++ bool* is_cached, uint64_t* palign = NULL); + + // Discard any buffers of decompressed sections. This is done + // at the end of the Add_symbols task. +Index: binutils-2.31/gold/output.cc +=================================================================== +--- binutils-2.31.orig/gold/output.cc 2018-12-06 14:52:01.000000000 +0100 ++++ binutils-2.31/gold/output.cc 2018-12-06 14:52:10.000000000 +0100 +@@ -2448,7 +2448,13 @@ Output_section::add_input_section(Layout + unsigned int reloc_shndx, + bool have_sections_script) + { ++ section_size_type input_section_size = shdr.get_sh_size(); ++ section_size_type uncompressed_size; + elfcpp::Elf_Xword addralign = shdr.get_sh_addralign(); ++ if (object->section_is_compressed(shndx, &uncompressed_size, ++ &addralign)) ++ input_section_size = uncompressed_size; ++ + if ((addralign & (addralign - 1)) != 0) + { + object->error(_("invalid alignment %lu for section \"%s\""), +@@ -2498,11 +2504,6 @@ Output_section::add_input_section(Layout + } + } + +- section_size_type input_section_size = shdr.get_sh_size(); +- section_size_type uncompressed_size; +- if (object->section_is_compressed(shndx, &uncompressed_size)) +- input_section_size = uncompressed_size; +- + off_t offset_in_section; + + if (this->has_fixed_layout())