summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/include/reloc.h
blob: a718b9a59735a4d6ff93de86f405e1aadff85e3b (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*	$OpenBSD: reloc.h,v 1.1 2013/02/02 13:32:06 miod Exp $	*/
/*	$NetBSD: elf_machdep.h,v 1.8 2009/05/30 05:56:52 skrll Exp $	*/

/* m68k relocation types */
#define	R_68K_NONE	0
#define	R_68K_32	1
#define	R_68K_16	2
#define	R_68K_8		3
#define	R_68K_PC32	4
#define	R_68K_PC16	5
#define	R_68K_PC8	6
#define	R_68K_GOT32	7
#define	R_68K_GOT16	8
#define	R_68K_GOT8	9
#define	R_68K_GOT32O	10
#define	R_68K_GOT16O	11
#define	R_68K_GOT8O	12
#define	R_68K_PLT32	13
#define	R_68K_PLT16	14
#define	R_68K_PLT8	15
#define	R_68K_PLT32O	16
#define	R_68K_PLT16O	17
#define	R_68K_PLT8O	18
#define	R_68K_COPY	19
#define	R_68K_GLOB_DAT	20
#define	R_68K_JMP_SLOT	21
#define	R_68K_RELATIVE	22

/* TLS relocations */
#define R_68K_TLS_GD32		25
#define R_68K_TLS_GD16		26
#define R_68K_TLS_GD8		27
#define R_68K_TLS_LDM32		28
#define R_68K_TLS_LDM16		29
#define R_68K_TLS_LDM8		30
#define R_68K_TLS_LDO32		31
#define R_68K_TLS_LDO16		32
#define R_68K_TLS_LDO8		33
#define R_68K_TLS_IE32		34
#define R_68K_TLS_IE16		35
#define R_68K_TLS_IE8		36
#define R_68K_TLS_LE32		37
#define R_68K_TLS_LE16		38
#define R_68K_TLS_LE8		39
#define R_68K_TLS_DTPMOD32	40
#define R_68K_TLS_DTPREL32	41
#define R_68K_TLS_TPREL32	42