diff options
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.patch | 46 |
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 @@ | |||
1 | From 6c6490ed5a5c5c00d1b18a1f446280689bb572d1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nagaraju Mekala <nmekala@xilix.com> | ||
3 | Date: Wed, 28 Nov 2018 14:00:29 +0530 | ||
4 | Subject: [PATCH 20/34] Fixed the bug in the R_MICROBLAZE_64_NONE relocation. | ||
5 | It was adjusting only lower 16bits. | ||
6 | |||
7 | Conflicts: | ||
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 | |||
14 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | ||
15 | index 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 | } | ||
29 | diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c | ||
30 | index 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 | -- | ||
45 | 2.37.1 (Apple Git-137.1) | ||
46 | |||