summaryrefslogtreecommitdiff
path: root/sys/arch/vax/include/elf_machdep.h
blob: 06227e80d1ac115d4de0049283c396c77cff775b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*	$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)