Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 1 | From cb65478b8ec240b372a9da7fe33875a59e89a1fe 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] fixing the imm bug. with relax option imm -1 is also getting |
| 5 | removed this is corrected now. |
| 6 | |
| 7 | Signed-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 | |
| 13 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
| 14 | index 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; |