In January 2015 we defined the ELF relocation types for the Atari Jaguar
J-RISC GPU and DSP processors, in order to allow creating and linking
object files in ELF format.
The ELF support for J-RISC is inofficial! It is currently supported
by the vasm assembler and
the vlink linker. We publish
the definitions in the hope that other projects do not create incomptible
solutions.
ELF Machine ID
#define EM_JAGRISC 0x9004
ELF Relocations
- #define R_JAG_NONE 0 No relocation.
- #define R_JAG_ABS32 1 Direct 32 bit.
- #define R_JAG_ABS16 2 Direct 16 bit.
- #define R_JAG_ABS8 3 Direct 8 bit.
- #define R_JAG_REL32 4 PC-relative 32 bit.
- #define R_JAG_REL16 5 PC-relative 16 bit.
- #define R_JAG_REL8 6 PC-relative 8 bit.
- #define R_JAG_ABS5 7 Direct 5 bit.
- #define R_JAG_REL5 8 PC-relative 5 bit.
- #define R_JAG_JR 9 PC-relative branch (distance / 2), 5 bit.
- #define R_JAG_ABS32SWP 10 32-bit direct, swapped halfwords
as in MOVEI.
- #define R_JAG_REL32SWP 11 32-bit PC-relative, swapped halfwords
as in MOVEI.
Frank Wille, June 2017