blob: bb7e91ccbd07be68b1da614bfd82f85730197bd7 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001From f649406ccaea992f3931e0d9ca9fbd6efb0c553b Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
3Date: Mon, 28 Aug 2017 19:54:02 -0700
4Subject: [PATCH] Fixing MicroBlaze IMM bug
5
6Fixing the imm bug. with relax option imm -1 is also getting removed this is corrected now.
7
8Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
9Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
10Upstream-Status: Pending
11
12---
13 bfd/elf32-microblaze.c | 3 +--
14 1 file changed, 1 insertion(+), 2 deletions(-)
15
16diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
17index a94799f..74b00d2 100644
18--- a/bfd/elf32-microblaze.c
19+++ b/bfd/elf32-microblaze.c
20@@ -1789,8 +1789,7 @@ microblaze_elf_relax_section (bfd *abfd,
21 else
22 symval += irel->r_addend;
23
24- if ((symval & 0xffff8000) == 0
25- || (symval & 0xffff8000) == 0xffff8000)
26+ if ((symval & 0xffff8000) == 0)
27 {
28 /* We can delete this instruction. */
29 sec->relax[sec->relax_count].addr = irel->r_offset;