package/binutils: add binutils 2.27
PATCH 1/1 package/binutils: add binutils 2.27
And drop upstream patches.
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/binutils/2.27/0120-sh-conf.patch | 46 ++++ package/binutils/2.27/0300-ld-makefile.patch | 41 +++ .../2.27/0301-check-ldrunpath-length.patch | 36 +++ .../2.27/0500-add-sysroot-fix-from-bug-3049.patch | 52 ++++ .../2.27/0600-poison-system-directories.patch | 306 +++++++++++++++++++++ package/binutils/2.27/0905-bfin-rofixup-bug.patch | 21 ++ package/binutils/Config.in.host | 4 + package/binutils/binutils.hash | 1 + 8 files changed, 507 insertions(+) create mode 100644 package/binutils/2.27/0120-sh-conf.patch create mode 100644 package/binutils/2.27/0300-ld-makefile.patch create mode 100644 package/binutils/2.27/0301-check-ldrunpath-length.patch create mode 100644 package/binutils/2.27/0500-add-sysroot-fix-from-bug-3049.patch create mode 100644 package/binutils/2.27/0600-poison-system-directories.patch create mode 100644 package/binutils/2.27/0905-bfin-rofixup-bug.patch
package/binutils/2.27/0120-sh-conf.patch new file +46 -0
@@ -0,0 +1,46 @@ +From 1ceee199e9a32034c6def7700fdbb26335ca76a3 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]> +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index 34b66f7..905bc7b 100755 +--- a/configure ++++ b/configure +@@ -3939,7 +3939,7 @@ case "${target}" in + or1k*-*-*) + noconfigdirs="$noconfigdirs gdb" + ;; +- sh-*-* | sh64-*-*) ++ sh*-*-* | sh64-*-*) + case "${target}" in + sh*-*-elf) + ;; +diff --git a/configure.ac b/configure.ac +index 4977d97..1e69ee2 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1276,7 +1276,7 @@ case "${target}" in + or1k*-*-*) + noconfigdirs="$noconfigdirs gdb" + ;; +- sh-*-* | sh64-*-*) ++ sh*-*-* | sh64-*-*) + case "${target}" in + sh*-*-elf) + ;; +-- +2.4.3 +
package/binutils/2.27/0300-ld-makefile.patch new file +41 -0
41 lines not on this page · raw message
package/binutils/2.27/0301-check-ldrunpath-length.patch new file +36 -0
@@ -0,0 +1,36 @@ +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.27/0500-add-sysroot-fix-from-bug-3049.patch new file +52 -0
52 lines not on this page · raw message
package/binutils/2.27/0600-poison-system-directories.patch new file +306 -0
306 lines not on this page · raw message
package/binutils/2.27/0905-bfin-rofixup-bug.patch new file +21 -0
@@ -0,0 +1,21 @@ +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/Config.in.host +4 -0
@@ -24,6 +24,9 @@ choice config BR2_BINUTILS_VERSION_2_26_X bool "binutils 2.26.1" + config BR2_BINUTILS_VERSION_2_27_X + bool "binutils 2.27" + endchoice config BR2_BINUTILS_VERSION
@@ -32,6 +35,7 @@ config BR2_BINUTILS_VERSION default "2.24" if BR2_BINUTILS_VERSION_2_24_X default "2.25.1" if BR2_BINUTILS_VERSION_2_25_X default "2.26.1" if BR2_BINUTILS_VERSION_2_26_X + default "2.27" if BR2_BINUTILS_VERSION_2_27_X config BR2_BINUTILS_ENABLE_LTO bool
package/binutils/binutils.hash +1 -0
@@ -2,6 +2,7 @@ sha512 5ec95ad47d49b12c4558a8db0ca2109d3ee1955e3776057f3330c4506f8f4d1cf5e505fbf8a16b98403a0fcdeaaf986fe0a22be6456247dbdace63ce1f776b12 binutils-2.24.tar.bz2 sha512 0b36dda0e6d32cd25613c0e64b56b28312515c54d6a159efd3db9a86717f114ab0a0a1f69d08975084d55713ebaeab64e4085c9b3d1c3fa86712869f80eb954d binutils-2.25.1.tar.bz2 sha512 9d9165609fd3b0f20d616f9891fc8e2b466eb13e2bfce40125e12427f8f201d20e2b8322bb6cb2b45e8df812f0e8ac059149f8a1f69ba3ed9d86a35c6a540b67 binutils-2.26.1.tar.bz2 +sha512 cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12cc842822bfc402836be86f479660cef3791aa62f3753d8a1a6f564cb binutils-2.27.tar.bz2 # Locally calculated (fetched from Github) sha512 829e14152dbd18bad36d7e161bdde52e92e8b439ab9fbc18655172f0e2fae954885286e77ceaab9e13b68f3ca19506068c3b1808a2e88f12ad6674d421519b64 binutils-arc-2016.09-eng011.tar.gz
Signature · 1 line
2.7.3
PATCH 1/1 package/binutils: add binutils 2.27
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
And drop upstream patches.
Signed-off-by Gustavo Zacarias <[email protected]>
Committed, thanks.
Perhaps we should now deprecate 2.24?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 package/binutils: add binutils 2.27
Quoted 3 lines · Peter Korsgaard
Committed, thanks.
Perhaps we should now deprecate 2.24?
Hi, yes probably.
I'll get into that with my next qemu dance bumping the default up a notch (to test).
Regards.