blob: 43d368c3b6aaecbec6ee775a8dfe6264ab30bed8 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From cb65478b8ec240b372a9da7fe33875a59e89a1fe Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Mon, 10 Jul 2017 16:07:28 +0530
4Subject: [PATCH] fixing the imm bug. with relax option imm -1 is also getting
5 removed this is corrected now.
6
7Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
8
9---
10 bfd/elf32-microblaze.c | 3 +--
11 1 file changed, 1 insertion(+), 2 deletions(-)
12
13diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
14index d19a6dc..d001437 100644
15--- a/bfd/elf32-microblaze.c
16+++ b/bfd/elf32-microblaze.c
17@@ -1869,8 +1869,7 @@ microblaze_elf_relax_section (bfd *abfd,
18 else
19 symval += irel->r_addend;
20
21- if ((symval & 0xffff8000) == 0
22- || (symval & 0xffff8000) == 0xffff8000)
23+ if ((symval & 0xffff8000) == 0)
24 {
25 /* We can delete this instruction. */
26 sec->relax[sec->relax_count].addr = irel->r_offset;