Skip to contentSkip to conversation

package/binutils: add binutils 2.26

RFC New Romain Naour 2 participants 2 messages Feb 7, 2016 – Mar 6, 2016

lore
Share & tools
lore
#0 lore raw

RFC 1/1 package/binutils: add binutils 2.26

- Rebase patches from 2.25 on top of 2.26.
- Use git format for patches
- remove upstreamed xtensa patches

The first patch [1] is needed to be able to build glibc with binutils 2.26 on nios2. The second from [2] fix an assertion issue with ld.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=a7be2893a6449e64fe6cfcdd8700b0a367a69f19
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=19405

Cc Gustavo Zacarias <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Max Filippov <[email protected]>
---
 package/binutils/2.26/0120-sh-conf.patch           |  46 ++++
 package/binutils/2.26/0300-ld-makefile.patch       |  41 +++
 .../2.26/0301-check-ldrunpath-length.patch         |  36 +++
 .../2.26/0500-add-sysroot-fix-from-bug-3049.patch  |  52 ++++
 .../2.26/0600-poison-system-directories.patch      | 306 +++++++++++++++++++++
 ...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 +++++++
 package/binutils/Config.in.host                    |   4 +
 package/binutils/binutils.hash                     |   1 +
 10 files changed, 762 insertions(+)
 create mode 100644 package/binutils/2.26/0120-sh-conf.patch
 create mode 100644 package/binutils/2.26/0300-ld-makefile.patch
 create mode 100644 package/binutils/2.26/0301-check-ldrunpath-length.patch
 create mode 100644 package/binutils/2.26/0500-add-sysroot-fix-from-bug-3049.patch
 create mode 100644 package/binutils/2.26/0600-poison-system-directories.patch
 create mode 100644 package/binutils/2.26/0900-Correct-nios2-_gp-address-computation.patch
 create mode 100644 package/binutils/2.26/0901-Fix-assertion-reduce-number-of-messages-about-FDE-en.patch
 create mode 100644 package/binutils/2.26/0902-xtensa-fix-signedness-of-gas-relocations.patch
package/binutils/2.26/0120-sh-conf.patch new file +46 -0
new file mode 100644
index 0000000..cc14ef4
@@ -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.26/0300-ld-makefile.patch new file +41 -0

41 lines not on this page · raw message

package/binutils/2.26/0301-check-ldrunpath-length.patch new file +36 -0
new file mode 100644
index 0000000..3b4c204
@@ -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.26/0500-add-sysroot-fix-from-bug-3049.patch new file +52 -0

52 lines not on this page · raw message

package/binutils/2.26/0600-poison-system-directories.patch new file +306 -0

306 lines not on this page · raw message

package/binutils/2.26/0900-Correct-nios2-_gp-address-computation.patch new file +108 -0

108 lines not on this page · raw message

package/binutils/2.26/0901-Fix-assertion-reduce-number-of-messages-about-FDE-en.patch new file +67 -0

67 lines not on this page · raw message

package/binutils/2.26/0902-xtensa-fix-signedness-of-gas-relocations.patch new file +101 -0

101 lines not on this page · raw message

package/binutils/Config.in.host +4 -0
index df3c385..8539a84 100644
@@ -24,6 +24,9 @@ choice
 	config BR2_BINUTILS_VERSION_2_25_X
 		bool "binutils 2.25.1"
 
+	config BR2_BINUTILS_VERSION_2_26_X
+		bool "binutils 2.26"
+
 endchoice
 
 config BR2_BINUTILS_VERSION
@@ -32,6 +35,7 @@ config BR2_BINUTILS_VERSION
 	default "2.23.2"	if BR2_BINUTILS_VERSION_2_23_X
 	default "2.24"		if BR2_BINUTILS_VERSION_2_24_X
 	default "2.25.1"	if BR2_BINUTILS_VERSION_2_25_X
+	default "2.26"		if BR2_BINUTILS_VERSION_2_26_X
 
 config BR2_BINUTILS_ENABLE_LTO
 	bool
package/binutils/binutils.hash +1 -0
index 4af5498..387714d 100644
@@ -3,5 +3,6 @@ sha512  ffe8ef263ef99183e8cc823fe8487ff7d0f7bf9a8efd2853b5f4636aca0023850d13de4e
 sha512  dec753bbba008f1526b89cf1bd85feba78f362f5333ffdf93953fd131eb755976dec82a0a4ba38c43d2434da007137780cfe674de5414be5cf7ce7fbc6af6d16  binutils-2.23.2.tar.bz2
 sha512  5ec95ad47d49b12c4558a8db0ca2109d3ee1955e3776057f3330c4506f8f4d1cf5e505fbf8a16b98403a0fcdeaaf986fe0a22be6456247dbdace63ce1f776b12  binutils-2.24.tar.bz2
 sha512  0b36dda0e6d32cd25613c0e64b56b28312515c54d6a159efd3db9a86717f114ab0a0a1f69d08975084d55713ebaeab64e4085c9b3d1c3fa86712869f80eb954d  binutils-2.25.1.tar.bz2
+sha512  e77e1b8dbbcbaf9ac2fae95c4403615808af3be03b2e1d32448cd3a7d32c43273f8bcace3f2de84ec120a982879295673029da306e2885dbf5f990584932cfc7  binutils-2.26.tar.bz2
 # No hash for the ARC variant, comes from the github-helper:
 none   xxx  binutils-arc-2015.12.tar.gz
Signature · 1 line
2.4.3
#1 lore raw

RFC 1/1 package/binutils: add binutils 2.26

Romain,

Quoted 26 lines · Romain Naour

- Rebase patches from 2.25 on top of 2.26.
- Use git format for patches
- remove upstreamed xtensa patches

The first patch [1] is needed to be able to build glibc with binutils 2.26 on nios2. The second from [2] fix an assertion issue with ld.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=a7be2893a6449e64fe6cfcdd8700b0a367a69f19
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=19405

Cc Gustavo Zacarias <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Max Filippov <[email protected]>
---
 package/binutils/2.26/0120-sh-conf.patch           |  46 ++++
 package/binutils/2.26/0300-ld-makefile.patch       |  41 +++
 .../2.26/0301-check-ldrunpath-length.patch         |  36 +++
 .../2.26/0500-add-sysroot-fix-from-bug-3049.patch  |  52 ++++
 .../2.26/0600-poison-system-directories.patch      | 306 +++++++++++++++++++++
 ...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 +++++++
 package/binutils/Config.in.host                    |   4 +
 package/binutils/binutils.hash                     |   1 +
 10 files changed, 762 insertions(+)
Quoted 8 lines
 create mode 100644 package/binutils/2.26/0120-sh-conf.patch
 create mode 100644 package/binutils/2.26/0300-ld-makefile.patch
 create mode 100644 package/binutils/2.26/0301-check-ldrunpath-length.patch
 create mode 100644 package/binutils/2.26/0500-add-sysroot-fix-from-bug-3049.patch
 create mode 100644 package/binutils/2.26/0600-poison-system-directories.patch
 create mode 100644 package/binutils/2.26/0900-Correct-nios2-_gp-address-computation.patch
 create mode 100644 package/binutils/2.26/0901-Fix-assertion-reduce-number-of-messages-about-FDE-en.patch
 create mode 100644 package/binutils/2.26/0902-xtensa-fix-signedness-of-gas-relocations.patch

Applied to master, thanks. One day it would be good to work on upstreaming the old patches (0120, 0300, 0301 and 0500).

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com