aboutsummaryrefslogtreecommitdiff
path: root/binutils
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 /binutils
parent938459015cab4c4bc4965c78c62672b4f18d1d1b (diff)
downloadgdb-d605374748fef3d3b1dea713e78bbef9c8b0fb65.zip
gdb-d605374748fef3d3b1dea713e78bbef9c8b0fb65.tar.gz
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 'binutils')
-rw-r--r--binutils/readelf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index c9b6210..701ca73 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -15279,6 +15279,10 @@ is_8bit_abs_reloc (Filedata * filedata, unsigned int reloc_type)
return reloc_type == 54; /* R_RISCV_SET8. */
case EM_Z80:
return reloc_type == 1; /* R_Z80_8. */
+ case EM_MICROBLAZE:
+ return (reloc_type == 33 /* R_MICROBLAZE_32_NONE. */
+ || reloc_type == 0 /* R_MICROBLAZE_NONE. */
+ || reloc_type == 9 /* R_MICROBLAZE_64_NONE. */);
default:
return false;
}