summaryrefslogtreecommitdiff
path: root/backends/ppc_reloc.def
blob: c7993bc88a39bed79b401928b5809cc0d0927ad3 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/* List the relocation types for ppc.  -*- C -*-
   Copyright (C) 2005 Red Hat, Inc.

   This program is Open Source software; you can redistribute it and/or
   modify it under the terms of the Open Software License version 1.0 as
   published by the Open Source Initiative.

   You should have received a copy of the Open Software License along
   with this program; if not, you may obtain a copy of the Open Software
   License version 1.0 from http://www.opensource.org/licenses/osl.php or
   by writing the Open Source Initiative c/o Lawrence Rosen, Esq.,
   3001 King Ranch Road, Ukiah, CA 95482.   */

/*	    NAME,		REL|EXEC|DYN	*/

RELOC_TYPE (NONE,		0)
RELOC_TYPE (ADDR32,		REL|EXEC|DYN)
RELOC_TYPE (ADDR24,		REL)
RELOC_TYPE (ADDR16,		REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (ADDR16_LO,		REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (ADDR16_HI,		REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (ADDR16_HA,		REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (ADDR14,		REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (ADDR14_BRTAKEN,	REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (ADDR14_BRNTAKEN,	REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (REL24,		REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (REL14,		REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (REL14_BRTAKEN,	REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (REL14_BRNTAKEN,	REL|EXEC|DYN)	/* note 1 */
RELOC_TYPE (GOT16,		REL)
RELOC_TYPE (GOT16_LO,		REL)
RELOC_TYPE (GOT16_HI,		REL)
RELOC_TYPE (GOT16_HA,		REL)
RELOC_TYPE (PLTREL24,		REL)
RELOC_TYPE (COPY,		EXEC)
RELOC_TYPE (GLOB_DAT,		EXEC|DYN)
RELOC_TYPE (JMP_SLOT,		EXEC|DYN)
RELOC_TYPE (RELATIVE,		EXEC|DYN)
RELOC_TYPE (LOCAL24PC,		REL)
RELOC_TYPE (UADDR32,		REL|EXEC|DYN)
RELOC_TYPE (UADDR16,		REL)		/* note 2 */
RELOC_TYPE (REL32,		REL|EXEC|DYN)
RELOC_TYPE (PLT32,		REL)
RELOC_TYPE (PLTREL32,		REL)
RELOC_TYPE (PLT16_LO,		REL)
RELOC_TYPE (PLT16_HI,		REL)
RELOC_TYPE (PLT16_HA,		REL)
RELOC_TYPE (SDAREL16,		REL)
RELOC_TYPE (SECTOFF,		REL)
RELOC_TYPE (SECTOFF_LO,		REL)
RELOC_TYPE (SECTOFF_HI,		REL)
RELOC_TYPE (SECTOFF_HA,		REL)
RELOC_TYPE (TLS,		REL)
RELOC_TYPE (DTPMOD32,		EXEC|DYN)	/* note 2 */
RELOC_TYPE (TPREL16,		REL)		/* note 2 */
RELOC_TYPE (TPREL16_LO,		REL)		/* note 2 */
RELOC_TYPE (TPREL16_HI,		REL)		/* note 2 */
RELOC_TYPE (TPREL16_HA,		REL)		/* note 2 */
RELOC_TYPE (TPREL32,		EXEC|DYN)	/* note 2 */
RELOC_TYPE (DTPREL16,		REL)
RELOC_TYPE (DTPREL16_LO,	REL)
RELOC_TYPE (DTPREL16_HI,	REL)
RELOC_TYPE (DTPREL16_HA,	REL)
RELOC_TYPE (DTPREL32,		EXEC|DYN)	/* note 2 */
RELOC_TYPE (GOT_TLSGD16,	REL)
RELOC_TYPE (GOT_TLSGD16_LO,	REL)
RELOC_TYPE (GOT_TLSGD16_HI,	REL)
RELOC_TYPE (GOT_TLSGD16_HA,	REL)
RELOC_TYPE (GOT_TLSLD16,	REL)
RELOC_TYPE (GOT_TLSLD16_LO,	REL)
RELOC_TYPE (GOT_TLSLD16_HI,	REL)
RELOC_TYPE (GOT_TLSLD16_HA,	REL)
RELOC_TYPE (GOT_TPREL16,	REL)
RELOC_TYPE (GOT_TPREL16_LO,	REL)
RELOC_TYPE (GOT_TPREL16_HI,	REL)
RELOC_TYPE (GOT_TPREL16_HA,	REL)
RELOC_TYPE (GOT_DTPREL16,	REL)
RELOC_TYPE (GOT_DTPREL16_LO,	REL)
RELOC_TYPE (GOT_DTPREL16_HI,	REL)
RELOC_TYPE (GOT_DTPREL16_HA,	REL)
RELOC_TYPE (EMB_NADDR32,	REL)		/* note 3 */
RELOC_TYPE (EMB_NADDR16,	REL)		/* note 3 */
RELOC_TYPE (EMB_NADDR16_LO,	REL)		/* note 3 */
RELOC_TYPE (EMB_NADDR16_HI,	REL)		/* note 3 */
RELOC_TYPE (EMB_NADDR16_HA,	REL)		/* note 3 */
RELOC_TYPE (EMB_SDAI16,		REL)		/* note 3 */
RELOC_TYPE (EMB_SDA2I16,	REL)		/* note 3 */
RELOC_TYPE (EMB_SDA2REL,	REL)		/* note 3 */
RELOC_TYPE (EMB_SDA21,		REL)		/* note 3 */
RELOC_TYPE (EMB_MRKREF,		REL)		/* note 3 */
RELOC_TYPE (EMB_RELSEC16,	REL)		/* note 3 */
RELOC_TYPE (EMB_RELST_LO,	REL)		/* note 3 */
RELOC_TYPE (EMB_RELST_HI,	REL)		/* note 3 */
RELOC_TYPE (EMB_RELST_HA,	REL)		/* note 3 */
RELOC_TYPE (EMB_BIT_FLD,	REL)		/* note 3 */
RELOC_TYPE (EMB_RELSDA,		REL)		/* note 3 */
RELOC_TYPE (DIAB_SDA21_LO,	REL)		/* note 3 */
RELOC_TYPE (DIAB_SDA21_HI,	REL)		/* note 3 */
RELOC_TYPE (DIAB_SDA21_HA,	REL)		/* note 3 */
RELOC_TYPE (DIAB_RELSDA_LO,	REL)		/* note 3 */
RELOC_TYPE (DIAB_RELSDA_HI,	REL)		/* note 3 */
RELOC_TYPE (DIAB_RELSDA_HA,	REL)		/* note 3 */
RELOC_TYPE (REL16,		REL)		/* note 2 */
RELOC_TYPE (REL16_LO,		REL)		/* note 2 */
RELOC_TYPE (REL16_HI,		REL)		/* note 2 */
RELOC_TYPE (REL16_HA,		REL)		/* note 2 */
RELOC_TYPE (TOC16,		REL)		/* note 2 */

/* Notes from Alan Modra:

   1) These relocs should not really appear in EXEC or DYN, but they do,
   primarily due to improper assembly or non-pic shared objects.  They
   will cause TEXTREL to be set.  I marked them in the table, because
   numerous people seem to think non-pic shared libs are a good idea.

   2) As for (1), these relocs can appear anywhere with improper
   assembler.  I should probably make ld reject anything other than the
   cases allowed in this table.	 Not seen in the wild, so I haven't
   added the other cases.

   3) Not used in SYSV4
*/