summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2022-11-04 15:07:16 -0500
committerMark Hatle <mark.hatle@amd.com>2022-11-07 08:05:23 -0600
commit75c67a6c15fed677378ab52ed90b6ca0e5125936 (patch)
treeb72dde036d0881b263b92707e4f457b7873d2f50 /meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch
parent675cc3174baed5028c647eb829570501c34eddb9 (diff)
downloadmeta-xilinx-75c67a6c15fed677378ab52ed90b6ca0e5125936.tar.gz
binutils-microblaze: Update to new version of the port
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch')
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch
new file mode 100644
index 00000000..21fab2de
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch
@@ -0,0 +1,46 @@
1From 6c6490ed5a5c5c00d1b18a1f446280689bb572d1 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Wed, 28 Nov 2018 14:00:29 +0530
4Subject: [PATCH 20/34] Fixed the bug in the R_MICROBLAZE_64_NONE relocation.
5 It was adjusting only lower 16bits.
6
7Conflicts:
8 bfd/elf64-microblaze.c
9---
10 bfd/elf32-microblaze.c | 4 ++--
11 bfd/elf64-microblaze.c | 4 ++--
12 2 files changed, 4 insertions(+), 4 deletions(-)
13
14diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
15index f20adb6fd73..88ac730582b 100644
16--- a/bfd/elf32-microblaze.c
17+++ b/bfd/elf32-microblaze.c
18@@ -2060,8 +2060,8 @@ microblaze_elf_relax_section (bfd *abfd,
19 sfix = calc_fixup (irel->r_offset + INST_WORD_SIZE, 0, sec);
20 efix = calc_fixup (target_address, 0, sec);
21 irel->r_addend -= (efix - sfix);
22- microblaze_bfd_write_imm_value_32 (abfd, contents + irel->r_offset
23- + INST_WORD_SIZE, irel->r_addend);
24+ microblaze_bfd_write_imm_value_64 (abfd, contents + irel->r_offset,
25+ irel->r_addend);
26 }
27 break;
28 }
29diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c
30index eb7f9138884..03fe9eba53a 100644
31--- a/bfd/elf64-microblaze.c
32+++ b/bfd/elf64-microblaze.c
33@@ -2098,8 +2098,8 @@ microblaze_elf_relax_section (bfd *abfd,
34 sfix = calc_fixup (irel->r_offset + INST_WORD_SIZE, 0, sec);
35 efix = calc_fixup (target_address, 0, sec);
36 irel->r_addend -= (efix - sfix);
37- microblaze_bfd_write_imm_value_32 (abfd, contents + irel->r_offset
38- + INST_WORD_SIZE, irel->r_addend);
39+ microblaze_bfd_write_imm_value_64 (abfd, contents + irel->r_offset,
40+ irel->r_addend);
41 }
42 break;
43 }
44--
452.37.1 (Apple Git-137.1)
46