xref: /netbsd-src/sys/arch/vax/include/elf_machdep.h (revision dc2ac295848fdbeb08478f3a5bb113efa716e9ad)
1*dc2ac295Schristos /*	$NetBSD: elf_machdep.h,v 1.6 2017/11/06 03:47:48 christos Exp $	*/
2741f18b6Smatt 
3522cbf02Skleink #define	ELF32_MACHDEP_ENDIANNESS	ELFDATA2LSB
4741f18b6Smatt #define	ELF32_MACHDEP_ID_CASES						\
5522cbf02Skleink 		case EM_VAX:						\
6741f18b6Smatt 			break;
7741f18b6Smatt 
8741f18b6Smatt #define	ELF64_MACHDEP_ENDIANNESS	XXX	/* break compilation */
9741f18b6Smatt #define	ELF64_MACHDEP_ID_CASES						\
10741f18b6Smatt 		/* no 64-bit ELF machine types supported */
11741f18b6Smatt 
1251535d4bSthorpej #define	ELF32_MACHDEP_ID	EM_VAX
1351535d4bSthorpej 
14*dc2ac295Schristos #define	KERN_ELFSIZE		32
1578b10569Sminoura #define ARCH_ELFSIZE		32	/* MD native binary size */
1678b10569Sminoura 
17741f18b6Smatt /* VAX relocations */
18741f18b6Smatt #define	R_VAX_NONE	0
19cb551c43Smatt #define	R_VAX_32	1	/* S + A */
20741f18b6Smatt #define	R_VAX_16	2
21cb551c43Smatt #define	R_VAX_8		3
22cb551c43Smatt #define	R_VAX_PC32	4	/* S + A - PC */
23cb551c43Smatt #define	R_VAX_PC16	5
24cb551c43Smatt #define	R_VAX_PC8	6
25cb551c43Smatt #define	R_VAX_COPY	19
26cb551c43Smatt #define	R_VAX_GLOB_DAT	20
27cb551c43Smatt #define	R_VAX_JMP_SLOT	21
28cb551c43Smatt #define R_VAX_RELATIVE	22	/* S + A + D */
29741f18b6Smatt 
30741f18b6Smatt #define	R_TYPE(name)	__CONCAT(R_VAX_,name)
31