diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/gdb/gdb/0010-fixing-the-imm-bug.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/gdb/gdb/0010-fixing-the-imm-bug.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gdb/gdb/0010-fixing-the-imm-bug.patch b/meta-microblaze/recipes-devtools/gdb/gdb/0010-fixing-the-imm-bug.patch new file mode 100644 index 00000000..201dfeb1 --- /dev/null +++ b/meta-microblaze/recipes-devtools/gdb/gdb/0010-fixing-the-imm-bug.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From b2dc3bfabd4d80be7d90502e3d2dc26b508679cb Mon Sep 17 00:00:00 2001 | ||
2 | From: Nagaraju Mekala <nmekala@xilix.com> | ||
3 | Date: Mon, 10 Jul 2017 16:07:28 +0530 | ||
4 | Subject: [PATCH 10/52] fixing the imm bug. with relax option imm -1 is also | ||
5 | getting removed this is corrected now. | ||
6 | |||
7 | --- | ||
8 | bfd/elf32-microblaze.c | 3 +-- | ||
9 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
10 | |||
11 | Index: gdb-9.2/bfd/elf32-microblaze.c | ||
12 | =================================================================== | ||
13 | --- gdb-9.2.orig/bfd/elf32-microblaze.c | ||
14 | +++ gdb-9.2/bfd/elf32-microblaze.c | ||
15 | @@ -1869,8 +1869,7 @@ microblaze_elf_relax_section (bfd *abfd, | ||
16 | else | ||
17 | symval += irel->r_addend; | ||
18 | |||
19 | - if ((symval & 0xffff8000) == 0 | ||
20 | - || (symval & 0xffff8000) == 0xffff8000) | ||
21 | + if ((symval & 0xffff8000) == 0) | ||
22 | { | ||
23 | /* We can delete this instruction. */ | ||
24 | sec->relax[sec->relax_count].addr = irel->r_offset; | ||