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:
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.patch50
1 files changed, 0 insertions, 50 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
deleted file mode 100644
index ff1702cf..00000000
--- a/meta-microblaze/recipes-devtools/binutils/binutils/0020-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch
+++ /dev/null
@@ -1,50 +0,0 @@
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
9Upstream-Status: Pending
10
11Signed-off-by: Mark Hatle <mark.hatle@amd.com>
12
13---
14 bfd/elf32-microblaze.c | 4 ++--
15 bfd/elf64-microblaze.c | 4 ++--
16 2 files changed, 4 insertions(+), 4 deletions(-)
17
18diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
19index f20adb6fd73..88ac730582b 100644
20--- a/bfd/elf32-microblaze.c
21+++ b/bfd/elf32-microblaze.c
22@@ -2060,8 +2060,8 @@ microblaze_elf_relax_section (bfd *abfd,
23 sfix = calc_fixup (irel->r_offset + INST_WORD_SIZE, 0, sec);
24 efix = calc_fixup (target_address, 0, sec);
25 irel->r_addend -= (efix - sfix);
26- microblaze_bfd_write_imm_value_32 (abfd, contents + irel->r_offset
27- + INST_WORD_SIZE, irel->r_addend);
28+ microblaze_bfd_write_imm_value_64 (abfd, contents + irel->r_offset,
29+ irel->r_addend);
30 }
31 break;
32 }
33diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c
34index eb7f9138884..03fe9eba53a 100644
35--- a/bfd/elf64-microblaze.c
36+++ b/bfd/elf64-microblaze.c
37@@ -2098,8 +2098,8 @@ microblaze_elf_relax_section (bfd *abfd,
38 sfix = calc_fixup (irel->r_offset + INST_WORD_SIZE, 0, sec);
39 efix = calc_fixup (target_address, 0, sec);
40 irel->r_addend -= (efix - sfix);
41- microblaze_bfd_write_imm_value_32 (abfd, contents + irel->r_offset
42- + INST_WORD_SIZE, irel->r_addend);
43+ microblaze_bfd_write_imm_value_64 (abfd, contents + irel->r_offset,
44+ irel->r_addend);
45 }
46 break;
47 }
48--
492.37.1 (Apple Git-137.1)
50