From 968cb541087ca0bbda3b835dcf4876501a411f2e82cf7b4f951ee4c01f1239df Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Fri, 9 Mar 2018 13:34:02 +0000 Subject: [PATCH] Accepting request 584502 from home:Andreas_Schwab:Factory - riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes OBS-URL: https://build.opensuse.org/request/show/584502 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=268 --- binutils.changes | 5 ++++ binutils.spec | 2 ++ cross-aarch64-binutils.changes | 5 ++++ cross-aarch64-binutils.spec | 2 ++ cross-arm-binutils.changes | 5 ++++ cross-arm-binutils.spec | 2 ++ cross-avr-binutils.changes | 5 ++++ cross-avr-binutils.spec | 2 ++ cross-epiphany-binutils.changes | 5 ++++ cross-epiphany-binutils.spec | 2 ++ cross-hppa-binutils.changes | 5 ++++ cross-hppa-binutils.spec | 2 ++ cross-hppa64-binutils.changes | 5 ++++ cross-hppa64-binutils.spec | 2 ++ cross-i386-binutils.changes | 5 ++++ cross-i386-binutils.spec | 2 ++ cross-ia64-binutils.changes | 5 ++++ cross-ia64-binutils.spec | 2 ++ cross-m68k-binutils.changes | 5 ++++ cross-m68k-binutils.spec | 2 ++ cross-mips-binutils.changes | 5 ++++ cross-mips-binutils.spec | 2 ++ cross-ppc-binutils.changes | 5 ++++ cross-ppc-binutils.spec | 2 ++ cross-ppc64-binutils.changes | 5 ++++ cross-ppc64-binutils.spec | 2 ++ cross-ppc64le-binutils.changes | 5 ++++ cross-ppc64le-binutils.spec | 2 ++ cross-riscv64-binutils.changes | 5 ++++ cross-riscv64-binutils.spec | 2 ++ cross-rx-binutils.changes | 5 ++++ cross-rx-binutils.spec | 2 ++ cross-s390-binutils.changes | 5 ++++ cross-s390-binutils.spec | 2 ++ cross-s390x-binutils.changes | 5 ++++ cross-s390x-binutils.spec | 2 ++ cross-sparc-binutils.changes | 5 ++++ cross-sparc-binutils.spec | 2 ++ cross-sparc64-binutils.changes | 5 ++++ cross-sparc64-binutils.spec | 2 ++ cross-spu-binutils.changes | 5 ++++ cross-spu-binutils.spec | 2 ++ cross-x86_64-binutils.changes | 5 ++++ cross-x86_64-binutils.spec | 2 ++ riscv-relax-size.patch | 44 +++++++++++++++++++++++++++++++++ 45 files changed, 198 insertions(+) create mode 100644 riscv-relax-size.patch diff --git a/binutils.changes b/binutils.changes index d65e9ca..2f9e638 100644 --- a/binutils.changes +++ b/binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/binutils.spec b/binutils.spec index ac4c174..659ea02 100644 --- a/binutils.spec +++ b/binutils.spec @@ -94,6 +94,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -165,6 +166,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-aarch64-binutils.changes +++ b/cross-aarch64-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-aarch64-binutils.spec b/cross-aarch64-binutils.spec index bc8da0a..2b77833 100644 --- a/cross-aarch64-binutils.spec +++ b/cross-aarch64-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-arm-binutils.changes +++ b/cross-arm-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-arm-binutils.spec b/cross-arm-binutils.spec index d30f572..bc12f40 100644 --- a/cross-arm-binutils.spec +++ b/cross-arm-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-avr-binutils.changes +++ b/cross-avr-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-avr-binutils.spec b/cross-avr-binutils.spec index 47a3aa8..6665639 100644 --- a/cross-avr-binutils.spec +++ b/cross-avr-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-epiphany-binutils.changes +++ b/cross-epiphany-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-epiphany-binutils.spec b/cross-epiphany-binutils.spec index 0aa1241..e53f440 100644 --- a/cross-epiphany-binutils.spec +++ b/cross-epiphany-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-hppa-binutils.changes +++ b/cross-hppa-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-hppa-binutils.spec b/cross-hppa-binutils.spec index eaef966..48c82a2 100644 --- a/cross-hppa-binutils.spec +++ b/cross-hppa-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-hppa64-binutils.changes +++ b/cross-hppa64-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-hppa64-binutils.spec b/cross-hppa64-binutils.spec index d9c5d30..7ccb78a 100644 --- a/cross-hppa64-binutils.spec +++ b/cross-hppa64-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-i386-binutils.changes +++ b/cross-i386-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-i386-binutils.spec b/cross-i386-binutils.spec index 1d484b7..774ba03 100644 --- a/cross-i386-binutils.spec +++ b/cross-i386-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-ia64-binutils.changes +++ b/cross-ia64-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-ia64-binutils.spec b/cross-ia64-binutils.spec index 512764b..f835cae 100644 --- a/cross-ia64-binutils.spec +++ b/cross-ia64-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-m68k-binutils.changes +++ b/cross-m68k-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-m68k-binutils.spec b/cross-m68k-binutils.spec index ee4360e..24c384f 100644 --- a/cross-m68k-binutils.spec +++ b/cross-m68k-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-mips-binutils.changes +++ b/cross-mips-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-mips-binutils.spec b/cross-mips-binutils.spec index 4f4d0fe..fefeb67 100644 --- a/cross-mips-binutils.spec +++ b/cross-mips-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-ppc-binutils.changes +++ b/cross-ppc-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-ppc-binutils.spec b/cross-ppc-binutils.spec index 029af3e..1ede343 100644 --- a/cross-ppc-binutils.spec +++ b/cross-ppc-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-ppc64-binutils.changes +++ b/cross-ppc64-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-ppc64-binutils.spec b/cross-ppc64-binutils.spec index 89d1f7e..ac50144 100644 --- a/cross-ppc64-binutils.spec +++ b/cross-ppc64-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-ppc64le-binutils.changes +++ b/cross-ppc64le-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-ppc64le-binutils.spec b/cross-ppc64le-binutils.spec index 0b3d1f4..a26b08f 100644 --- a/cross-ppc64le-binutils.spec +++ b/cross-ppc64le-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-riscv64-binutils.changes +++ b/cross-riscv64-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-riscv64-binutils.spec b/cross-riscv64-binutils.spec index b76dbe9..ab90f76 100644 --- a/cross-riscv64-binutils.spec +++ b/cross-riscv64-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-rx-binutils.changes +++ b/cross-rx-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-rx-binutils.spec b/cross-rx-binutils.spec index 84da787..0d0deee 100644 --- a/cross-rx-binutils.spec +++ b/cross-rx-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-s390-binutils.changes +++ b/cross-s390-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-s390-binutils.spec b/cross-s390-binutils.spec index 1f969eb..acc7fbb 100644 --- a/cross-s390-binutils.spec +++ b/cross-s390-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-s390x-binutils.changes +++ b/cross-s390x-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-s390x-binutils.spec b/cross-s390x-binutils.spec index d631e9c..997668b 100644 --- a/cross-s390x-binutils.spec +++ b/cross-s390x-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-sparc-binutils.changes +++ b/cross-sparc-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-sparc-binutils.spec b/cross-sparc-binutils.spec index 8051fe4..69dfa93 100644 --- a/cross-sparc-binutils.spec +++ b/cross-sparc-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-sparc64-binutils.changes +++ b/cross-sparc64-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-sparc64-binutils.spec b/cross-sparc64-binutils.spec index c2038e1..0696f0c 100644 --- a/cross-sparc64-binutils.spec +++ b/cross-sparc64-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-spu-binutils.changes +++ b/cross-spu-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-spu-binutils.spec b/cross-spu-binutils.spec index a964d00..e2f2478 100644 --- a/cross-spu-binutils.spec +++ b/cross-spu-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -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 d65e9ca..2f9e638 100644 --- a/cross-x86_64-binutils.changes +++ b/cross-x86_64-binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 8 11:33:31 UTC 2018 - schwab@suse.de + +- riscv-relax-size.patch: Fix symbol size bug when relaxation deletes bytes + ------------------------------------------------------------------- Tue Mar 6 16:01:24 UTC 2018 - matz@suse.com diff --git a/cross-x86_64-binutils.spec b/cross-x86_64-binutils.spec index b1790a1..2b2ee0f 100644 --- a/cross-x86_64-binutils.spec +++ b/cross-x86_64-binutils.spec @@ -97,6 +97,7 @@ Patch22: binutils-bfd_h.patch Patch34: aarch64-common-pagesize.patch Patch35: riscv-wrap-relax.patch Patch36: binutils-pr22868.diff +Patch37: riscv-relax-size.patch Patch90: cross-avr-nesc-as.patch Patch92: cross-avr-omit_section_dynsym.patch Patch93: cross-avr-size.patch @@ -168,6 +169,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa %patch34 -p1 %patch35 -p1 %patch36 -p1 +%patch37 -p1 %if "%{TARGET}" == "avr" cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h %patch90 diff --git a/riscv-relax-size.patch b/riscv-relax-size.patch new file mode 100644 index 0000000..ecbfcce --- /dev/null +++ b/riscv-relax-size.patch @@ -0,0 +1,44 @@ +2018-03-01 Jim Wilson + + PR 22756 + * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use + else if instead of if. + +Index: binutils-2.30/bfd/elfnn-riscv.c +=================================================================== +--- binutils-2.30.orig/bfd/elfnn-riscv.c ++++ binutils-2.30/bfd/elfnn-riscv.c +@@ -2639,10 +2639,16 @@ riscv_relax_delete_bytes (bfd *abfd, ase + + /* If the symbol *spans* the bytes we just deleted (i.e. its + *end* is in the moved bytes but its *start* isn't), then we +- must adjust its size. */ +- if (sym->st_value <= addr +- && sym->st_value + sym->st_size > addr +- && sym->st_value + sym->st_size <= toaddr) ++ must adjust its size. ++ ++ This test needs to use the original value of st_value, otherwise ++ we might accidentally decrease size when deleting bytes right ++ before the symbol. But since deleted relocs can't span across ++ symbols, we can't have both a st_value and a st_size decrease, ++ so it is simpler to just use an else. */ ++ else if (sym->st_value <= addr ++ && sym->st_value + sym->st_size > addr ++ && sym->st_value + sym->st_size <= toaddr) + sym->st_size -= count; + } + } +@@ -2690,9 +2696,9 @@ riscv_relax_delete_bytes (bfd *abfd, ase + sym_hash->root.u.def.value -= count; + + /* As above, adjust the size if needed. */ +- if (sym_hash->root.u.def.value <= addr +- && sym_hash->root.u.def.value + sym_hash->size > addr +- && sym_hash->root.u.def.value + sym_hash->size <= toaddr) ++ else if (sym_hash->root.u.def.value <= addr ++ && sym_hash->root.u.def.value + sym_hash->size > addr ++ && sym_hash->root.u.def.value + sym_hash->size <= toaddr) + sym_hash->size -= count; + } + }