aboutsummaryrefslogtreecommitdiff
path: root/bfd/reloc.c
diff options
context:
space:
mode:
authorNeal Frager <neal.frager@amd.com>2023-10-17 09:40:06 +0100
committerMichael J. Eager <eager@eagercon.com>2023-10-20 07:12:30 -0700
commitd605374748fef3d3b1dea713e78bbef9c8b0fb65 (patch)
treee7f021bf23820d43871e1cca59c98534b8d49303 /bfd/reloc.c
parent938459015cab4c4bc4965c78c62672b4f18d1d1b (diff)
downloadfsf-binutils-gdb-d605374748fef3d3b1dea713e78bbef9c8b0fb65.zip
fsf-binutils-gdb-d605374748fef3d3b1dea713e78bbef9c8b0fb65.tar.gz
fsf-binutils-gdb-d605374748fef3d3b1dea713e78bbef9c8b0fb65.tar.bz2
bfd: microblaze: Add 32_NONE reloc type
This patch adds the R_MICROBLAZE_32_NONE relocation type. This is a 32-bit reloc that stores the 32-bit pc relative value in two words (with an imm instruction). Add test case to gas test suite. Signed-off-by: Neal Frager <neal.frager@amd.com> Signed-off-by: Michael J. Eager <eager@eagercon.com>
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r--bfd/reloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 2ac883d..3ea2afc 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -6695,6 +6695,12 @@ ENUMDOC
This is a 32 bit reloc for the microblaze to handle
expressions of the form "Symbol Op Symbol"
ENUM
+ BFD_RELOC_MICROBLAZE_32_NONE
+ENUMDOC
+ This is a 32 bit reloc that stores the 32 bit pc relative
+ value in two words (with an imm instruction). No relocation is
+ done here - only used for relaxing
+ENUM
BFD_RELOC_MICROBLAZE_64_NONE
ENUMDOC
This is a 64 bit reloc that stores the 32 bit pc relative