NetBSD/sys/arch/vax/include/elf_machdep.h

31 lines
796 B
C

/* $NetBSD: elf_machdep.h,v 1.6 2017/11/06 03:47:48 christos Exp $ */
#define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB
#define ELF32_MACHDEP_ID_CASES \
case EM_VAX: \
break;
#define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */
#define ELF64_MACHDEP_ID_CASES \
/* no 64-bit ELF machine types supported */
#define ELF32_MACHDEP_ID EM_VAX
#define KERN_ELFSIZE 32
#define ARCH_ELFSIZE 32 /* MD native binary size */
/* VAX relocations */
#define R_VAX_NONE 0
#define R_VAX_32 1 /* S + A */
#define R_VAX_16 2
#define R_VAX_8 3
#define R_VAX_PC32 4 /* S + A - PC */
#define R_VAX_PC16 5
#define R_VAX_PC8 6
#define R_VAX_COPY 19
#define R_VAX_GLOB_DAT 20
#define R_VAX_JMP_SLOT 21
#define R_VAX_RELATIVE 22 /* S + A + D */
#define R_TYPE(name) __CONCAT(R_VAX_,name)