Brad Bishop | f6355e4 | 2020-12-08 14:30:50 -0500 | [diff] [blame^] | 1 | From d6ccef90be40de63ee6da4943a601edaf7b1a136 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 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
| 12 | index 9c4f809eaa..c22130fd8c 100644 |
| 13 | --- a/bfd/elf32-microblaze.c |
| 14 | +++ b/bfd/elf32-microblaze.c |
| 15 | @@ -1865,8 +1865,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; |
| 25 | -- |
| 26 | 2.17.1 |
| 27 | |