Home | History | Annotate | Line # | Download | only in include
      1 /*	$NetBSD: elf_machdep.h,v 1.7 2025/12/03 21:36:14 jkoshy Exp $	*/
      2 
      3 #if !defined(_SYS_ELFDEFINITIONS_H_)
      4 /* VAX relocations */
      5 #define	R_VAX_NONE	0
      6 #define	R_VAX_32	1	/* S + A */
      7 #define	R_VAX_16	2
      8 #define	R_VAX_8		3
      9 #define	R_VAX_PC32	4	/* S + A - PC */
     10 #define	R_VAX_PC16	5
     11 #define	R_VAX_PC8	6
     12 #define	R_VAX_COPY	19
     13 #define	R_VAX_GLOB_DAT	20
     14 #define	R_VAX_JMP_SLOT	21
     15 #define R_VAX_RELATIVE	22	/* S + A + D */
     16 #endif /* !defined(_SYS_ELFDEFINITIONS_H_) */
     17 
     18 /*
     19  * Local symbols.
     20  */
     21 #define	ELF32_MACHDEP_ENDIANNESS	ELFDATA2LSB
     22 #define	ELF32_MACHDEP_ID_CASES						\
     23 		case EM_VAX:						\
     24 			break;
     25 
     26 #define	ELF64_MACHDEP_ENDIANNESS	XXX	/* break compilation */
     27 #define	ELF64_MACHDEP_ID_CASES						\
     28 		/* no 64-bit ELF machine types supported */
     29 
     30 #define	ELF32_MACHDEP_ID	EM_VAX
     31 
     32 #define	KERN_ELFSIZE		32
     33 #define ARCH_ELFSIZE		32	/* MD native binary size */
     34 
     35 #define	R_TYPE(name)	__CONCAT(R_VAX_,name)
     36