Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | From f649406ccaea992f3931e0d9ca9fbd6efb0c553b Mon Sep 17 00:00:00 2001 |
| 2 | From: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
| 3 | Date: Mon, 28 Aug 2017 19:54:02 -0700 |
| 4 | Subject: [PATCH] Fixing MicroBlaze IMM bug |
| 5 | |
| 6 | Fixing the imm bug. with relax option imm -1 is also getting removed this is corrected now. |
| 7 | |
| 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
| 9 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | --- |
| 13 | bfd/elf32-microblaze.c | 3 +-- |
| 14 | 1 file changed, 1 insertion(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
| 17 | index 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; |