summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-12-05 17:39:09 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-12-13 11:20:44 +0100
commitf80fc2c0974f9aa914932d432febdff162b2ced8 (patch)
tree2e4399eca1963c146ed871badf2005726c2710c8 /patches
parent077aec9379c7e2508adee7253c65e32722dcaa01 (diff)
downloadOSELAS.Toolchain-f80fc2c0974f9aa914932d432febdff162b2ced8.tar.gz
OSELAS.Toolchain-f80fc2c0974f9aa914932d432febdff162b2ced8.tar.xz
binutils: version bump 2.30 -> 2.31.1
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/binutils-2.30/0001-Allow-R_AARCH64_ABS16-and-R_AARCH64_ABS32-against-ab.patch57
-rw-r--r--patches/binutils-2.31.1/0100-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch (renamed from patches/binutils-2.30/0100-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch)6
-rw-r--r--patches/binutils-2.31.1/series (renamed from patches/binutils-2.30/series)3
3 files changed, 4 insertions, 62 deletions
diff --git a/patches/binutils-2.30/0001-Allow-R_AARCH64_ABS16-and-R_AARCH64_ABS32-against-ab.patch b/patches/binutils-2.30/0001-Allow-R_AARCH64_ABS16-and-R_AARCH64_ABS32-against-ab.patch
deleted file mode 100644
index 1fd9afd..0000000
--- a/patches/binutils-2.30/0001-Allow-R_AARCH64_ABS16-and-R_AARCH64_ABS32-against-ab.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From: Renlin Li <renlin.li@arm.com>
-Date: Sat, 3 Feb 2018 13:18:17 +0000
-Subject: [PATCH] Allow R_AARCH64_ABS16 and R_AARCH64_ABS32 against absolution
- symbol or undefine symbol in shared object.
-
-backport from mainline
-
-bfd/
-
-2018-02-05 Renlin Li <renlin.li@arm.com>
-
- PR ld/22764
- * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
- R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
- check for writeable section as well.
-
-ld/
-
-2018-02-05 Renlin Li <renlin.li@arm.com>
-
- PR ld/22764
- * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
- * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
- * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
- * testsuite/ld-aarch64/pr22764.s: New.
- * testsuite/ld-aarch64/pr22764.d: New.
----
- bfd/elfnn-aarch64.c | 15 ++++++++++++---
- 1 file changed, 12 insertions(+), 3 deletions(-)
-
-diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
-index d5711e0eb1dc..973188220ba1 100644
---- a/bfd/elfnn-aarch64.c
-+++ b/bfd/elfnn-aarch64.c
-@@ -7074,10 +7074,19 @@ elfNN_aarch64_check_relocs (bfd *abfd, struct bfd_link_info *info,
- #if ARCH_SIZE == 64
- case BFD_RELOC_AARCH64_32:
- #endif
-- if (bfd_link_pic (info)
-- && (sec->flags & SEC_ALLOC) != 0
-- && (sec->flags & SEC_READONLY) != 0)
-+ if (bfd_link_pic (info) && (sec->flags & SEC_ALLOC) != 0)
- {
-+ if (h != NULL
-+ /* This is an absolute symbol. It represents a value instead
-+ of an address. */
-+ && ((h->root.type == bfd_link_hash_defined
-+ && bfd_is_abs_section (h->root.u.def.section))
-+ /* This is an undefined symbol. */
-+ || h->root.type == bfd_link_hash_undefined))
-+ break;
-+
-+ /* For local symbols, defined global symbols in a non-ABS section,
-+ it is assumed that the value is an address. */
- int howto_index = bfd_r_type - BFD_RELOC_AARCH64_RELOC_START;
- _bfd_error_handler
- /* xgettext:c-format */
diff --git a/patches/binutils-2.30/0100-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch b/patches/binutils-2.31.1/0100-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
index 9ab7729..88f06c6 100644
--- a/patches/binutils-2.30/0100-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
+++ b/patches/binutils-2.31.1/0100-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
@@ -13,10 +13,10 @@ Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
1 file changed, 4 insertions(+)
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
-index c0925fc9b970..cf6e2fe203e1 100644
+index 1ad9d6b6fa81..d9b3d26b49f9 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
-@@ -1470,6 +1470,8 @@ fragment <<EOF
+@@ -1471,6 +1471,8 @@ fragment <<EOF
&& command_line.rpath == NULL)
{
path = (const char *) getenv ("LD_RUN_PATH");
@@ -25,7 +25,7 @@ index c0925fc9b970..cf6e2fe203e1 100644
if (path
&& gld${EMULATION_NAME}_search_needed (path, &n, force))
break;
-@@ -1750,6 +1752,8 @@ gld${EMULATION_NAME}_before_allocation (void)
+@@ -1751,6 +1753,8 @@ gld${EMULATION_NAME}_before_allocation (void)
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");
diff --git a/patches/binutils-2.30/series b/patches/binutils-2.31.1/series
index d89c7f2..3503f18 100644
--- a/patches/binutils-2.30/series
+++ b/patches/binutils-2.31.1/series
@@ -1,7 +1,6 @@
# generated by git-ptx-patches
#tag:base --start-number 1
#tag:upstream --start-number 1
-0001-Allow-R_AARCH64_ABS16-and-R_AARCH64_ABS32-against-ab.patch
#tag:debian --start-number 100
0100-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
-# 980ef2225944402e64746169ce1bb6b3 - git-ptx-patches magic
+# ea2cb336759b3de3c1bebaa5ae119653 - git-ptx-patches magic