Update binutils package
cover Update binutils package
Hello,
This patch series:
* Update binutils 2.28.x to 2.28.1 (instead of 2.28)
* Adds support for binutils 2.29.
* Moves to using binutils 2.28.x as the default binutils version instead f 2.27.
* Removes support for the older binutils 2.26.x.
It has been tested by building qemu_arm_vexpress_defconfig with both binutils 2.28.1 and binutils 2.29, and checking that the system boots fine under Qemu.
Best regards,
Thomas
Thomas Petazzoni (4):
binutils: bump 2.28.x series to 2.28.1
binutils: add support for binutils 2.29
binutils: switch to use 2.28.x as the default version
binutils: remove support for 2.26
Config.in.legacy | 8 ++
package/binutils/2.26.1/0800-microblaze-musl.patch | 23 ----
...900-Correct-nios2-_gp-address-computation.patch | 108 ---------------
...on-reduce-number-of-messages-about-FDE-en.patch | 67 ---------
...-xtensa-fix-signedness-of-gas-relocations.patch | 101 --------------
...03-xtensa-fix-.init-.fini-literals-moving.patch | 149 ---------------------
.../binutils/2.26.1/0904-bfin-fdpic-upstream.patch | 30 -----
.../binutils/2.26.1/0905-bfin-rofixup-bug.patch | 21 ---
.../binutils/2.26.1/0906-microblaze-pr21180.patch | 33 -----
.../binutils/{2.28 => 2.28.1}/0120-sh-conf.patch | 0
.../{2.28 => 2.28.1}/0300-ld-makefile.patch | 0
.../0301-check-ldrunpath-length.patch | 0
.../0500-add-sysroot-fix-from-bug-3049.patch | 0
.../0600-poison-system-directories.patch | 0
.../{2.28 => 2.28.1}/0905-bfin-rofixup-bug.patch | 0
.../{2.28 => 2.28.1}/0906-microblaze-pr21180.patch | 0
.../0120-sh-conf.patch => 2.29/0001-sh-conf.patch} | 22 +--
.../0002-ld-makefile.patch} | 10 +-
.../0003-check-ldrunpath-length.patch} | 22 +--
.../0004-add-sysroot-fix-from-bug-3049.patch} | 23 ++--
.../0005-poison-system-directories.patch} | 56 ++++----
...LINKER-BUG-.rofixup-section-size-mismatch.patch | 31 +++++
package/binutils/Config.in.host | 15 +--
package/binutils/binutils.hash | 4 +-
package/binutils/binutils.mk | 8 +-
25 files changed, 122 insertions(+), 609 deletions(-)
delete mode 100644 package/binutils/2.26.1/0800-microblaze-musl.patch
delete mode 100644 package/binutils/2.26.1/0900-Correct-nios2-_gp-address-computation.patch
delete mode 100644 package/binutils/2.26.1/0901-Fix-assertion-reduce-number-of-messages-about-FDE-en.patch
delete mode 100644 package/binutils/2.26.1/0902-xtensa-fix-signedness-of-gas-relocations.patch
delete mode 100644 package/binutils/2.26.1/0903-xtensa-fix-.init-.fini-literals-moving.patch
delete mode 100644 package/binutils/2.26.1/0904-bfin-fdpic-upstream.patch
delete mode 100644 package/binutils/2.26.1/0905-bfin-rofixup-bug.patch
delete mode 100644 package/binutils/2.26.1/0906-microblaze-pr21180.patch
rename package/binutils/{2.28 => 2.28.1}/0120-sh-conf.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0300-ld-makefile.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0301-check-ldrunpath-length.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0500-add-sysroot-fix-from-bug-3049.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0600-poison-system-directories.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0905-bfin-rofixup-bug.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0906-microblaze-pr21180.patch (100%)
rename package/binutils/{2.26.1/0120-sh-conf.patch => 2.29/0001-sh-conf.patch} (70%)
rename package/binutils/{2.26.1/0300-ld-makefile.patch => 2.29/0002-ld-makefile.patch} (85%)
rename package/binutils/{2.26.1/0301-check-ldrunpath-length.patch => 2.29/0003-check-ldrunpath-length.patch} (62%)
rename package/binutils/{2.26.1/0500-add-sysroot-fix-from-bug-3049.patch => 2.29/0004-add-sysroot-fix-from-bug-3049.patch} (69%)
rename package/binutils/{2.26.1/0600-poison-system-directories.patch => 2.29/0005-poison-system-directories.patch} (88%)
create mode 100644 package/binutils/2.29/0006-Fixes-LINKER-BUG-.rofixup-section-size-mismatch.patchSignature · 1 line
2.9.4
PATCH 1/4 binutils: bump 2.28.x series to 2.28.1
binutils 2.28.1 is a bug-fix release of the 2.28.x branch, so let's switch to it.
Since a xz-compressed tarball is available, we use it instead of the bz2-compressed one.
---
package/binutils/{2.28 => 2.28.1}/0120-sh-conf.patch | 0
package/binutils/{2.28 => 2.28.1}/0300-ld-makefile.patch | 0
package/binutils/{2.28 => 2.28.1}/0301-check-ldrunpath-length.patch | 0
.../{2.28 => 2.28.1}/0500-add-sysroot-fix-from-bug-3049.patch | 0
.../binutils/{2.28 => 2.28.1}/0600-poison-system-directories.patch | 0
package/binutils/{2.28 => 2.28.1}/0905-bfin-rofixup-bug.patch | 0
package/binutils/{2.28 => 2.28.1}/0906-microblaze-pr21180.patch | 0
package/binutils/Config.in.host | 4 ++--
package/binutils/binutils.hash | 2 +-
package/binutils/binutils.mk | 4 ++++
10 files changed, 7 insertions(+), 3 deletions(-)
rename package/binutils/{2.28 => 2.28.1}/0120-sh-conf.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0300-ld-makefile.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0301-check-ldrunpath-length.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0500-add-sysroot-fix-from-bug-3049.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0600-poison-system-directories.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0905-bfin-rofixup-bug.patch (100%)
rename package/binutils/{2.28 => 2.28.1}/0906-microblaze-pr21180.patch (100%)package/binutils/2.28.1/0120-sh-conf.patch renamed from package/binutils/2.28/0120-sh-conf.patch +0 -0
package/binutils/2.28.1/0300-ld-makefile.patch renamed from package/binutils/2.28/0300-ld-makefile.patch +0 -0
package/binutils/2.28.1/0301-check-ldrunpath-length.patch renamed from package/binutils/2.28/0301-check-ldrunpath-length.patch +0 -0
package/binutils/2.28.1/0500-add-sysroot-fix-from-bug-3049.patch renamed from package/binutils/2.28/0500-add-sysroot-fix-from-bug-3049.patch +0 -0
package/binutils/2.28.1/0600-poison-system-directories.patch renamed from package/binutils/2.28/0600-poison-system-directories.patch +0 -0
package/binutils/2.28.1/0905-bfin-rofixup-bug.patch renamed from package/binutils/2.28/0905-bfin-rofixup-bug.patch +0 -0
package/binutils/2.28.1/0906-microblaze-pr21180.patch renamed from package/binutils/2.28/0906-microblaze-pr21180.patch +0 -0
package/binutils/Config.in.host +2 -2
@@ -17,7 +17,7 @@ config BR2_BINUTILS_VERSION_2_27_X depends on !(BR2_arm && !BR2_USE_MMU) config BR2_BINUTILS_VERSION_2_28_X - bool "binutils 2.28" + bool "binutils 2.28.1" endchoice
@@ -26,7 +26,7 @@ config BR2_BINUTILS_VERSION default "arc-2017.03" if BR2_arc default "2.26.1" if BR2_BINUTILS_VERSION_2_26_X default "2.27" if BR2_BINUTILS_VERSION_2_27_X - default "2.28" if BR2_BINUTILS_VERSION_2_28_X + default "2.28.1" if BR2_BINUTILS_VERSION_2_28_X config BR2_BINUTILS_ENABLE_LTO bool
package/binutils/binutils.hash +1 -1
@@ -1,7 +1,7 @@ # From ftp://gcc.gnu.org/pub/binutils/releases/sha512.sum sha512 9d9165609fd3b0f20d616f9891fc8e2b466eb13e2bfce40125e12427f8f201d20e2b8322bb6cb2b45e8df812f0e8ac059149f8a1f69ba3ed9d86a35c6a540b67 binutils-2.26.1.tar.bz2 sha512 cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12cc842822bfc402836be86f479660cef3791aa62f3753d8a1a6f564cb binutils-2.27.tar.bz2 -sha512 ede2e4e59a800260eea8c14eafbaee94e30abadafd5c419a3370f9f62213cf027d6400a1d4970b6958bd4d220e675dcd483a708107016e7abd5c99d7392ba8fd binutils-2.28.tar.bz2 +sha512 dc5b6872ae01c07c12d38f3bb7ead06effc6da3265ac872e2d9c6104304f89f85f2645b029a43f308a7938a7299b1928d385205d0a2245674a621649032a138d binutils-2.28.1.tar.xz # Locally calculated (fetched from Github) sha512 07d5639e74eafe8fced259870c1a7dedee67c534573dda53fb78ee1ffeec9e17479fdde41dccd03b1cf0248023acbef7f66013398b2f722e4a8891ac680d1d16 binutils-arc-2017.03.tar.gz
package/binutils/binutils.mk +4 -0
@@ -21,7 +21,11 @@ BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.gz BINUTILS_FROM_GIT = y endif BINUTILS_SITE ?= $(BR2_GNU_MIRROR)/binutils +ifeq ($(BINUTILS_VERSION),2.28.1) +BINUTILS_SOURCE ?= binutils-$(BINUTILS_VERSION).tar.xz +else BINUTILS_SOURCE ?= binutils-$(BINUTILS_VERSION).tar.bz2 +endif BINUTILS_EXTRA_CONFIG_OPTIONS = $(call qstrip,$(BR2_BINUTILS_EXTRA_CONFIG_OPTIONS)) BINUTILS_INSTALL_STAGING = YES BINUTILS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
Signature · 1 line
2.9.4
PATCH 2/4 binutils: add support for binutils 2.29
In reply to Thomas PetazzoniAll patches from binutils 2.28 are kept, except patch 0906-microblaze-pr21180.patch, because it has been merged upstream as of commit bd757ca7bf5886a4025ca02093fca1b8c5ce11a2. Other patches are slightly adapted to differences that appeared in binutils 2.29.
The patches are now all Git formatted, so instead of having weird sequence numbers, they have normal sequence numbers starting from 0001 and incrementing.
Since binutils 2.29 is now available as a .tar.xz tarball, we use this format instead of .bz2 used for previous versions.
--- package/binutils/2.29/0001-sh-conf.patch | 48 ++++ package/binutils/2.29/0002-ld-makefile.patch | 41 +++ .../2.29/0003-check-ldrunpath-length.patch | 36 +++ .../2.29/0004-add-sysroot-fix-from-bug-3049.patch | 51 ++++ .../2.29/0005-poison-system-directories.patch | 306 +++++++++++++++++++++ ...LINKER-BUG-.rofixup-section-size-mismatch.patch | 31 +++ package/binutils/Config.in.host | 4 + package/binutils/binutils.hash | 1 + package/binutils/binutils.mk | 2 + 9 files changed, 520 insertions(+) create mode 100644 package/binutils/2.29/0001-sh-conf.patch create mode 100644 package/binutils/2.29/0002-ld-makefile.patch create mode 100644 package/binutils/2.29/0003-check-ldrunpath-length.patch create mode 100644 package/binutils/2.29/0004-add-sysroot-fix-from-bug-3049.patch create mode 100644 package/binutils/2.29/0005-poison-system-directories.patch create mode 100644 package/binutils/2.29/0006-Fixes-LINKER-BUG-.rofixup-section-size-mismatch.patch
package/binutils/2.29/0001-sh-conf.patch new file +48 -0
@@ -0,0 +1,48 @@ +From fdb0d1d63d8dc30b319db174f2a90e681d8cd2ed Mon Sep 17 00:00:00 2001 +From: Romain Naour <[email protected]> +Date: Fri, 25 Dec 2015 11:38:13 +0100 +Subject: [PATCH] sh-conf + +Likewise, binutils has no idea about any of these new targets either, so we +fix that up too.. now we're able to actually build a real toolchain for +sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more +inept targets than that one, really. Go look, I promise). + +[Romain: rebase on top of 2.26] +Signed-off-by: Romain Naour <[email protected]> +[Thomas: rebase on top of 2.29, in which sh64 support was removed.] +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index be9dd89..3c0f4c6 100755 +--- a/configure ++++ b/configure +@@ -3844,7 +3844,7 @@ case "${target}" in + or1k*-*-*) + noconfigdirs="$noconfigdirs gdb" + ;; +- sh-*-*) ++ sh*-*-*) + case "${target}" in + sh*-*-elf) + ;; +diff --git a/configure.ac b/configure.ac +index 532c5c2..4f40318 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1178,7 +1178,7 @@ case "${target}" in + or1k*-*-*) + noconfigdirs="$noconfigdirs gdb" + ;; +- sh-*-*) ++ sh*-*-*) + case "${target}" in + sh*-*-elf) + ;; +-- +2.9.4 +
package/binutils/2.29/0002-ld-makefile.patch new file +41 -0
41 lines not on this page · raw message
package/binutils/2.29/0003-check-ldrunpath-length.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 3bd211025c890ef2971958915d500a9bb2913a2a Mon Sep 17 00:00:00 2001 +From: Romain Naour <[email protected]> +Date: Fri, 25 Dec 2015 11:41:47 +0100 +Subject: [PATCH] check-ldrunpath-length + +[Romain: rebase on top of 2.26] +Signed-off-by: Romain Naour <[email protected]> +--- + ld/emultempl/elf32.em | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em +index d2551b6..70fcb56 100644 +--- a/ld/emultempl/elf32.em ++++ b/ld/emultempl/elf32.em +@@ -1463,6 +1463,8 @@ fragment <<EOF + && command_line.rpath == NULL) + { + path = (const char *) getenv ("LD_RUN_PATH"); ++ if ((path) && (strlen (path) == 0)) ++ path = NULL; + if (path + && gld${EMULATION_NAME}_search_needed (path, &n, force)) + break; +@@ -1740,6 +1742,8 @@ gld${EMULATION_NAME}_before_allocation (void) + rpath = command_line.rpath; + if (rpath == NULL) + rpath = (const char *) getenv ("LD_RUN_PATH"); ++ if ((rpath) && (strlen (rpath) == 0)) ++ rpath = NULL; + + for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next) + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) +-- +2.9.4 +
package/binutils/2.29/0004-add-sysroot-fix-from-bug-3049.patch new file +51 -0
51 lines not on this page · raw message
package/binutils/2.29/0005-poison-system-directories.patch new file +306 -0
306 lines not on this page · raw message
package/binutils/2.29/0006-Fixes-LINKER-BUG-.rofixup-section-size-mismatch.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 122de3b633f4273826a2d01702d7c515f93ec2be Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb <[email protected]> +Date: Sat, 29 Jul 2017 14:08:20 +0200 +Subject: [PATCH] Fixes: LINKER BUG: .rofixup section size mismatch + +Workaround from adi-toolchain commit: +af414ec1fb628ddb1562f062f3db49823ca14ca2 +[#6798] binutils-2.21/bfd: temp workaround for rofixup mismatch errors. + +Signed-off-by: Waldemar Brodkorb <[email protected]> +--- + bfd/elf32-bfin.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c +index b3e09bd..660eec5 100644 +--- a/bfd/elf32-bfin.c ++++ b/bfd/elf32-bfin.c +@@ -4845,7 +4845,8 @@ bfinfdpic_check_relocs (bfd *abfd, struct bfd_link_info *info, + + case R_BFIN_FUNCDESC: + picrel->fd++; +- picrel->relocsfd++; ++ if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC) ++ picrel->relocsfd++; + break; + + /* This relocation describes the C++ object vtable hierarchy. +-- +2.9.4 +
package/binutils/Config.in.host +4 -0
@@ -19,6 +19,9 @@ config BR2_BINUTILS_VERSION_2_27_X config BR2_BINUTILS_VERSION_2_28_X bool "binutils 2.28.1" +config BR2_BINUTILS_VERSION_2_29_X + bool "binutils 2.29" + endchoice config BR2_BINUTILS_VERSION
@@ -27,6 +30,7 @@ config BR2_BINUTILS_VERSION default "2.26.1" if BR2_BINUTILS_VERSION_2_26_X default "2.27" if BR2_BINUTILS_VERSION_2_27_X default "2.28.1" if BR2_BINUTILS_VERSION_2_28_X + default "2.29" if BR2_BINUTILS_VERSION_2_29_X config BR2_BINUTILS_ENABLE_LTO bool
package/binutils/binutils.hash +1 -0
@@ -2,6 +2,7 @@ sha512 9d9165609fd3b0f20d616f9891fc8e2b466eb13e2bfce40125e12427f8f201d20e2b8322bb6cb2b45e8df812f0e8ac059149f8a1f69ba3ed9d86a35c6a540b67 binutils-2.26.1.tar.bz2 sha512 cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12cc842822bfc402836be86f479660cef3791aa62f3753d8a1a6f564cb binutils-2.27.tar.bz2 sha512 dc5b6872ae01c07c12d38f3bb7ead06effc6da3265ac872e2d9c6104304f89f85f2645b029a43f308a7938a7299b1928d385205d0a2245674a621649032a138d binutils-2.28.1.tar.xz +sha512 bb227c7af65133a61bbde8be4104a543f4185fce8c8e7be22c36d92d121d28b5413d42f18c7e987d035d6312c542d0e2aaca8930386a4ce26d7c9d7248145398 binutils-2.29.tar.xz # Locally calculated (fetched from Github) sha512 07d5639e74eafe8fced259870c1a7dedee67c534573dda53fb78ee1ffeec9e17479fdde41dccd03b1cf0248023acbef7f66013398b2f722e4a8891ac680d1d16 binutils-arc-2017.03.tar.gz
package/binutils/binutils.mk +2 -0
@@ -23,6 +23,8 @@ endif BINUTILS_SITE ?= $(BR2_GNU_MIRROR)/binutils ifeq ($(BINUTILS_VERSION),2.28.1) BINUTILS_SOURCE ?= binutils-$(BINUTILS_VERSION).tar.xz +else ifeq ($(BINUTILS_VERSION),2.29) +BINUTILS_SOURCE ?= binutils-$(BINUTILS_VERSION).tar.xz else BINUTILS_SOURCE ?= binutils-$(BINUTILS_VERSION).tar.bz2 endif
Signature · 1 line
2.9.4
PATCH 2/4 binutils: add support for binutils 2.29
Hi Thomas,
Thomas Petazzoni wrote,
Quoted 11 lines
All patches from binutils 2.28 are kept, except patch 0906-microblaze-pr21180.patch, because it has been merged upstream as of commit
bd757ca7bf5886a4025ca02093fca1b8c5ce11a2. Other patches are slightly adapted to differences that appeared in binutils 2.29.The patches are now all Git formatted, so instead of having weird sequence numbers, they have normal sequence numbers starting from 0001 and incrementing.
Since binutils 2.29 is now available as a .tar.xz tarball, we use this format instead of .bz2 used for previous versions.
I am testing some more qemu defconfigs with binutils 2.29. sh4/sparc worked fine. But xtensa fails to compile busybox:
/home/wbx/buildroot/output/host/lib/gcc/xtensa-buildroot-linux-uclibc/6.4.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.29 assertion fail elf32-xtensa.c:3965
Adding Max to Cc.
best regards
Waldemar
PATCH 2/4 binutils: add support for binutils 2.29
Hello,
Quoted 12 lines · Waldemar Brodkorb
Quoted 11 lines
All patches from binutils 2.28 are kept, except patch 0906-microblaze-pr21180.patch, because it has been merged upstream as of commit
bd757ca7bf5886a4025ca02093fca1b8c5ce11a2. Other patches are slightly adapted to differences that appeared in binutils 2.29.The patches are now all Git formatted, so instead of having weird sequence numbers, they have normal sequence numbers starting from 0001 and incrementing.
Since binutils 2.29 is now available as a .tar.xz tarball, we use this format instead of .bz2 used for previous versions.
Quoted 7 lines
I am testing some more qemu defconfigs with binutils 2.29. sh4/sparc worked fine. But xtensa fails to compile busybox:
/home/wbx/buildroot/output/host/lib/gcc/xtensa-buildroot-linux-uclibc/6.4.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.29 assertion fail elf32-xtensa.c:3965Adding Max to Cc.
Thanks!
Since we're not switching to 2.29 as the default, I think it's fine if some architectures have a few issues with 2.29. The whole point of adding new versions before making them the default is precisely to iron out such issues.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/4 binutils: add support for binutils 2.29
In reply to Waldemar BrodkorbHi Waldemar,
Quoted 5 lines · Waldemar Brodkorb
I am testing some more qemu defconfigs with binutils 2.29. sh4/sparc worked fine. But xtensa fails to compile busybox:
/home/wbx/buildroot/output/host/lib/gcc/xtensa-buildroot-linux-uclibc/6.4.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.29 assertion fail elf32-xtensa.c:3965
Thanks for the heads up. I've posted a fix.
Signature · 2 lines
Thanks. -- Max
PATCH 3/4 binutils: switch to use 2.28.x as the default version
In reply to Thomas PetazzoniNow that binutils 2.29 has been released, it is time to move to binutils 2.28.x as the default binutils version, instead of 2.27.
--- package/binutils/Config.in.host | 3 +-- package/binutils/binutils.mk | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
package/binutils/Config.in.host +1 -2
@@ -2,8 +2,7 @@ comment "Binutils Options" choice prompt "Binutils Version" - default BR2_BINUTILS_VERSION_2_27_X - default BR2_BINUTILS_VERSION_2_28_X if (BR2_arm && !BR2_USE_MMU) + default BR2_BINUTILS_VERSION_2_28_X depends on !BR2_arc help Select the version of binutils you wish to use.
package/binutils/binutils.mk +1 -1
@@ -11,7 +11,7 @@ ifeq ($(BINUTILS_VERSION),) ifeq ($(BR2_arc),y) BINUTILS_VERSION = arc-2017.03 else -BINUTILS_VERSION = 2.27 +BINUTILS_VERSION = 2.28.1 endif endif # BINUTILS_VERSION
Signature · 1 line
2.9.4
PATCH 4/4 binutils: remove support for 2.26
In reply to Thomas PetazzoniNow that binutils 2.29 has been introduced, and we have moved to 2.28.1 as the default version, it is time to drop support for binutils 2.26.x.
--- Config.in.legacy | 8 + package/binutils/2.26.1/0120-sh-conf.patch | 46 ---- package/binutils/2.26.1/0300-ld-makefile.patch | 41 --- .../2.26.1/0301-check-ldrunpath-length.patch | 36 --- .../0500-add-sysroot-fix-from-bug-3049.patch | 52 ---- .../2.26.1/0600-poison-system-directories.patch | 306 --------------------- package/binutils/2.26.1/0800-microblaze-musl.patch | 23 -- ...900-Correct-nios2-_gp-address-computation.patch | 108 -------- ...on-reduce-number-of-messages-about-FDE-en.patch | 67 ----- ...-xtensa-fix-signedness-of-gas-relocations.patch | 101 ------- ...03-xtensa-fix-.init-.fini-literals-moving.patch | 149 ---------- .../binutils/2.26.1/0904-bfin-fdpic-upstream.patch | 30 -- .../binutils/2.26.1/0905-bfin-rofixup-bug.patch | 21 -- .../binutils/2.26.1/0906-microblaze-pr21180.patch | 33 --- package/binutils/Config.in.host | 4 - package/binutils/binutils.hash | 1 - 16 files changed, 8 insertions(+), 1018 deletions(-) delete mode 100644 package/binutils/2.26.1/0120-sh-conf.patch delete mode 100644 package/binutils/2.26.1/0300-ld-makefile.patch delete mode 100644 package/binutils/2.26.1/0301-check-ldrunpath-length.patch delete mode 100644 package/binutils/2.26.1/0500-add-sysroot-fix-from-bug-3049.patch delete mode 100644 package/binutils/2.26.1/0600-poison-system-directories.patch delete mode 100644 package/binutils/2.26.1/0800-microblaze-musl.patch delete mode 100644 package/binutils/2.26.1/0900-Correct-nios2-_gp-address-computation.patch delete mode 100644 package/binutils/2.26.1/0901-Fix-assertion-reduce-number-of-messages-about-FDE-en.patch delete mode 100644 package/binutils/2.26.1/0902-xtensa-fix-signedness-of-gas-relocations.patch delete mode 100644 package/binutils/2.26.1/0903-xtensa-fix-.init-.fini-literals-moving.patch delete mode 100644 package/binutils/2.26.1/0904-bfin-fdpic-upstream.patch delete mode 100644 package/binutils/2.26.1/0905-bfin-rofixup-bug.patch delete mode 100644 package/binutils/2.26.1/0906-microblaze-pr21180.patch
Config.in.legacy +8 -0
@@ -145,6 +145,14 @@ endif ############################################################################### comment "Legacy options removed in 2017.08" +config BR2_BINUTILS_VERSION_2_26_X + bool "binutils version 2.26 support removed" + select BR2_LEGACY + help + Support for binutils version 2.26 has been removed. The + current default version (2.28 or later) has been selected + instead. + config BR2_XTENSA_OVERLAY_DIR string "The BR2_XTENSA_OVERLAY_DIR option has been removed" help
package/binutils/2.26.1/0120-sh-conf.patch deleted +0 -46
46 lines not on this page · raw message
package/binutils/2.26.1/0300-ld-makefile.patch deleted +0 -41
41 lines not on this page · raw message
package/binutils/2.26.1/0301-check-ldrunpath-length.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From ebe1cba46df52d7bf86def3d681271fd05fb453b Mon Sep 17 00:00:00 2001 -From: Romain Naour <[email protected]> -Date: Fri, 25 Dec 2015 11:41:47 +0100 -Subject: [PATCH] check-ldrunpath-length - -[Romain: rebase on top of 2.26] -Signed-off-by: Romain Naour <[email protected]> ---- - ld/emultempl/elf32.em | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em -index 0405d4f..efd3300 100644 ---- a/ld/emultempl/elf32.em -+++ b/ld/emultempl/elf32.em -@@ -1242,6 +1242,8 @@ fragment <<EOF - && command_line.rpath == NULL) - { - lib_path = (const char *) getenv ("LD_RUN_PATH"); -+ if ((lib_path) && (strlen (lib_path) == 0)) -+ lib_path = NULL; - if (gld${EMULATION_NAME}_search_needed (lib_path, &n, - force)) - break; -@@ -1523,6 +1525,8 @@ gld${EMULATION_NAME}_before_allocation (void) - rpath = command_line.rpath; - if (rpath == NULL) - rpath = (const char *) getenv ("LD_RUN_PATH"); -+ if ((rpath) && (strlen (rpath) == 0)) -+ rpath = NULL; - - for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next) - if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) --- -2.4.3 -
package/binutils/2.26.1/0500-add-sysroot-fix-from-bug-3049.patch deleted +0 -52
52 lines not on this page · raw message
package/binutils/2.26.1/0600-poison-system-directories.patch deleted +0 -306
306 lines not on this page · raw message
package/binutils/2.26.1/0800-microblaze-musl.patch deleted +0 -23
@@ -1,23 +0,0 @@ -Fix the genetation of GOT entries for the Microblaze target. - -PR target/19516 -* elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): -Always produce a RELATIVE reloc for a local symbol. - -[Taken from https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=47993b4af18c6ef1cad300f6393bf896d3cb5e5c.] -Signed-off-by: Waldemar Brodkorb <[email protected]> - -diff -Nur binutils-2.26.1.orig/bfd/elf32-microblaze.c binutils-2.26.1/bfd/elf32-microblaze.c ---- binutils-2.26.1.orig/bfd/elf32-microblaze.c 2015-11-13 09:27:40.000000000 +0100 -+++ binutils-2.26.1/bfd/elf32-microblaze.c 2016-10-20 19:06:58.655565765 +0200 -@@ -3296,8 +3296,8 @@ - The entry in the global offset table will already have been - initialized in the relocate_section function. */ - if (bfd_link_pic (info) -- && (info->symbolic || h->dynindx == -1) -- && h->def_regular) -+ && ((info->symbolic && h->def_regular) -+ || h->dynindx == -1)) - { - asection *sec = h->root.u.def.section; - microblaze_elf_output_dynamic_relocation (output_bfd,
package/binutils/2.26.1/0900-Correct-nios2-_gp-address-computation.patch deleted +0 -108
108 lines not on this page · raw message
package/binutils/2.26.1/0901-Fix-assertion-reduce-number-of-messages-about-FDE-en.patch deleted +0 -67
67 lines not on this page · raw message
package/binutils/2.26.1/0902-xtensa-fix-signedness-of-gas-relocations.patch deleted +0 -101
101 lines not on this page · raw message
package/binutils/2.26.1/0903-xtensa-fix-.init-.fini-literals-moving.patch deleted +0 -149
149 lines not on this page · raw message
package/binutils/2.26.1/0904-bfin-fdpic-upstream.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From ed3056ebdb9795446157af03d3e08fbb93c1b01d Mon Sep 17 00:00:00 2001 -From: Nick Clifton <[email protected]> -Date: Tue, 29 Mar 2016 10:24:16 +0100 -Subject: [PATCH] Relax assertion in BFIN linker to allow for discard GOT relocs. - - PR 17334 - * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax - assertion on the size of the got section to allow it to be bigger - than the number of relocs. -diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c -index 7cc8b6d..b2fcf38 100644 ---- a/bfd/elf32-bfin.c -+++ b/bfd/elf32-bfin.c -@@ -4457,7 +4457,13 @@ elf32_bfinfdpic_finish_dynamic_sections (bfd *output_bfd, - if (bfinfdpic_got_section (info)) - { - BFD_ASSERT (bfinfdpic_gotrel_section (info)->size -- == (bfinfdpic_gotrel_section (info)->reloc_count -+ /* PR 17334: It appears that the GOT section can end up -+ being bigger than the number of relocs. Presumably -+ because some relocs have been deleted. A test case has -+ yet to be generated for verify this, but in the meantime -+ the test below has been changed from == to >= so that -+ applications can continue to be built. */ -+ >= (bfinfdpic_gotrel_section (info)->reloc_count - * sizeof (Elf32_External_Rel))); - - if (bfinfdpic_gotfixup_section (info)) --- -1.7.1
package/binutils/2.26.1/0905-bfin-rofixup-bug.patch deleted +0 -21
@@ -1,21 +0,0 @@ -Fixes: LINKER BUG: .rofixup section size mismatch - -Workaround from adi-toolchain commit: -af414ec1fb628ddb1562f062f3db49823ca14ca2 -[#6798] binutils-2.21/bfd: temp workaround for rofixup mismatch errors. - -Signed-off-by: Waldemar Brodkorb <[email protected]> - -diff -Nur binutils-2.26.1.orig/bfd/elf32-bfin.c binutils-2.26.1/bfd/elf32-bfin.c ---- binutils-2.26.1.orig/bfd/elf32-bfin.c 2015-11-13 09:27:40.000000000 +0100 -+++ binutils-2.26.1/bfd/elf32-bfin.c 2016-07-31 00:50:48.357995132 +0200 -@@ -4879,7 +4879,8 @@ - - case R_BFIN_FUNCDESC: - picrel->fd++; -- picrel->relocsfd++; -+ if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC) -+ picrel->relocsfd++; - break; - - /* This relocation describes the C++ object vtable hierarchy.
package/binutils/2.26.1/0906-microblaze-pr21180.patch deleted +0 -33
@@ -1,33 +0,0 @@ -Fix ld segfault for microblaze when --gc-sections is used -Upstream: pending -https://sourceware.org/bugzilla/show_bug.cgi?id=21180 - -Signed-off-by: Waldemar Brodkorb <[email protected]> - -diff -Nur binutils-2.26.1.orig/bfd/elf32-microblaze.c binutils-2.26.1/bfd/elf32-microblaze.c ---- binutils-2.26.1.orig/bfd/elf32-microblaze.c 2015-11-13 09:27:40.000000000 +0100 -+++ binutils-2.26.1/bfd/elf32-microblaze.c 2017-02-23 19:43:18.536542964 +0100 -@@ -3300,13 +3300,20 @@ - && h->def_regular) - { - asection *sec = h->root.u.def.section; -+ bfd_vma value; -+ -+ value = h->root.u.def.value; -+ if (sec->output_section != NULL) -+ /* PR 21180: If the output section is NULL, then the symbol is no -+ longer needed, and in theory the GOT entry is redundant. But -+ it is too late to change our minds now... */ -+ value += sec->output_section->vma + sec->output_offset; -+ - microblaze_elf_output_dynamic_relocation (output_bfd, - srela, srela->reloc_count++, - /* symindex= */ 0, - R_MICROBLAZE_REL, offset, -- h->root.u.def.value -- + sec->output_section->vma -- + sec->output_offset); -+ value); - } - else - {
package/binutils/Config.in.host +0 -4
@@ -7,9 +7,6 @@ choice help Select the version of binutils you wish to use. -config BR2_BINUTILS_VERSION_2_26_X - bool "binutils 2.26.1" - config BR2_BINUTILS_VERSION_2_27_X bool "binutils 2.27" # binutils 2.27 triggers a bug in elf2flt on ARM/noMMU
@@ -26,7 +23,6 @@ endchoice config BR2_BINUTILS_VERSION string default "arc-2017.03" if BR2_arc - default "2.26.1" if BR2_BINUTILS_VERSION_2_26_X default "2.27" if BR2_BINUTILS_VERSION_2_27_X default "2.28.1" if BR2_BINUTILS_VERSION_2_28_X default "2.29" if BR2_BINUTILS_VERSION_2_29_X
package/binutils/binutils.hash +0 -1
@@ -1,5 +1,4 @@ # From ftp://gcc.gnu.org/pub/binutils/releases/sha512.sum -sha512 9d9165609fd3b0f20d616f9891fc8e2b466eb13e2bfce40125e12427f8f201d20e2b8322bb6cb2b45e8df812f0e8ac059149f8a1f69ba3ed9d86a35c6a540b67 binutils-2.26.1.tar.bz2 sha512 cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12cc842822bfc402836be86f479660cef3791aa62f3753d8a1a6f564cb binutils-2.27.tar.bz2 sha512 dc5b6872ae01c07c12d38f3bb7ead06effc6da3265ac872e2d9c6104304f89f85f2645b029a43f308a7938a7299b1928d385205d0a2245674a621649032a138d binutils-2.28.1.tar.xz sha512 bb227c7af65133a61bbde8be4104a543f4185fce8c8e7be22c36d92d121d28b5413d42f18c7e987d035d6312c542d0e2aaca8930386a4ce26d7c9d7248145398 binutils-2.29.tar.xz
Signature · 1 line
2.9.4
cover Update binutils package
In reply to Thomas PetazzoniHello,
Quoted 3 lines · Thomas Petazzoni
Thomas Petazzoni (4):
binutils: bump 2.28.x series to 2.28.1
binutils: add support for binutils 2.29
I've applied those ones, which I believe are not controversial/
Quoted 2 lines
binutils: switch to use 2.28.x as the default version
binutils: remove support for 2.26
I'll hold off on those ones until I get some feedback, to decide whether we take them in 2017.08, or wait for 2017.11.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
cover Update binutils package
Hi,
Thomas Petazzoni wrote,
Quoted 8 lines
Hello,
Quoted 3 lines · Thomas Petazzoni
Thomas Petazzoni (4):
binutils: bump 2.28.x series to 2.28.1
binutils: add support for binutils 2.29
Quoted 7 lines
I've applied those ones, which I believe are not controversial/
Quoted 2 lines
binutils: switch to use 2.28.x as the default version
binutils: remove support for 2.26I'll hold off on those ones until I get some feedback, to decide whether we take them in 2017.08, or wait for 2017.11.
Having 2.28.1 as default seems okay to me.
I use 2.28 mostly and have seen no issues so far.
With binutils 2.29 I have some more issues for glibc toolchains. I think tomorrow glibc developers will release their next version, would it make sense to sent a patch or should I wait until -next is open?
best regards
Waldemar
cover Update binutils package
In reply to Thomas PetazzoniHello,
Quoted 6 lines · Thomas Petazzoni
Quoted 3 lines · Thomas Petazzoni
Thomas Petazzoni (4):
binutils: bump 2.28.x series to 2.28.1
binutils: add support for binutils 2.29
Quoted 7 lines
I've applied those ones, which I believe are not controversial/
Quoted 2 lines
binutils: switch to use 2.28.x as the default version
binutils: remove support for 2.26I'll hold off on those ones until I get some feedback, to decide whether we take them in 2017.08, or wait for 2017.11.
Since only Waldemar commented positively on the move to binutils 2.28, I've merged the two remaining patches in this series.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com