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>
This commit is contained in:
Neal Frager
2023-10-17 09:40:06 +01:00
committed by Michael J. Eager
parent 938459015c
commit d605374748
9 changed files with 51 additions and 3 deletions

View File

@@ -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;
}