xref: /netbsd-src/external/gpl3/binutils/dist/elfcpp/arm.h (revision be12b8bcaf6171e22ce54bb82a70fb1a78be9ab5)
1*be12b8bcSchristos // arm.h -- ELF definitions specific to EM_ARM  -*- C++ -*-
2*be12b8bcSchristos 
3*be12b8bcSchristos // Copyright 2009, Free Software Foundation, Inc.
4*be12b8bcSchristos // Written by Doug Kwan <dougkwan@google.com>.
5*be12b8bcSchristos 
6*be12b8bcSchristos // This file is part of elfcpp.
7*be12b8bcSchristos 
8*be12b8bcSchristos // This program is free software; you can redistribute it and/or
9*be12b8bcSchristos // modify it under the terms of the GNU Library General Public License
10*be12b8bcSchristos // as published by the Free Software Foundation; either version 2, or
11*be12b8bcSchristos // (at your option) any later version.
12*be12b8bcSchristos 
13*be12b8bcSchristos // In addition to the permissions in the GNU Library General Public
14*be12b8bcSchristos // License, the Free Software Foundation gives you unlimited
15*be12b8bcSchristos // permission to link the compiled version of this file into
16*be12b8bcSchristos // combinations with other programs, and to distribute those
17*be12b8bcSchristos // combinations without any restriction coming from the use of this
18*be12b8bcSchristos // file.  (The Library Public License restrictions do apply in other
19*be12b8bcSchristos // respects; for example, they cover modification of the file, and
20*be12b8bcSchristos // distribution when not linked into a combined executable.)
21*be12b8bcSchristos 
22*be12b8bcSchristos // This program is distributed in the hope that it will be useful, but
23*be12b8bcSchristos // WITHOUT ANY WARRANTY; without even the implied warranty of
24*be12b8bcSchristos // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25*be12b8bcSchristos // Library General Public License for more details.
26*be12b8bcSchristos 
27*be12b8bcSchristos // You should have received a copy of the GNU Library General Public
28*be12b8bcSchristos // License along with this program; if not, write to the Free Software
29*be12b8bcSchristos // Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
30*be12b8bcSchristos // 02110-1301, USA.
31*be12b8bcSchristos 
32*be12b8bcSchristos #ifndef ELFCPP_ARM_H
33*be12b8bcSchristos #define ELFCPP_ARM_H
34*be12b8bcSchristos 
35*be12b8bcSchristos // The relocation type information is taken from:
36*be12b8bcSchristos //
37*be12b8bcSchristos //   ELF for the ARM Architecture
38*be12b8bcSchristos //   Document number: ARM IHI 0044C, current through ABI release 2.07
39*be12b8bcSchristos //   Date of Issue: 10th October, 2008
40*be12b8bcSchristos //
41*be12b8bcSchristos 
42*be12b8bcSchristos namespace elfcpp
43*be12b8bcSchristos {
44*be12b8bcSchristos 
45*be12b8bcSchristos //
46*be12b8bcSchristos // ARM Relocations Codes
47*be12b8bcSchristos //
48*be12b8bcSchristos 
49*be12b8bcSchristos // Operation notes:
50*be12b8bcSchristos //   S: Address of the symbol.
51*be12b8bcSchristos //   A: Addend for relocation.
52*be12b8bcSchristos //   P: Address of the place being relocated.
53*be12b8bcSchristos //   Pa: Adjusted address of the place being relocated (P & 0xfffffffc)
54*be12b8bcSchristos //   T: is 1 if S has type STT_FUNC and the symbol addresses a Thumb
55*be12b8bcSchristos //      instruction.Thumb-bit; it is 0 otherwise.
56*be12b8bcSchristos //   B(S): Addressing origin of the output segment defining S.
57*be12b8bcSchristos //   GOT_ORG: Addressing origin of the Global Offset Table.
58*be12b8bcSchristos //   GOT(S): Address of the GOT entry for S.
59*be12b8bcSchristos //
60*be12b8bcSchristos 
61*be12b8bcSchristos enum
62*be12b8bcSchristos {
63*be12b8bcSchristos 				// Type		Class	Operation
64*be12b8bcSchristos 				// ------------------------------
65*be12b8bcSchristos   R_ARM_NONE = 0,		// Static	Misc
66*be12b8bcSchristos   R_ARM_PC24 = 1,		// Deprecated	ARM	((S + A) | T) - P
67*be12b8bcSchristos   R_ARM_ABS32 = 2,		// Static	Data	(S + A) | T
68*be12b8bcSchristos   R_ARM_REL32 = 3,		// Static	Data	((S + A) | T) - P
69*be12b8bcSchristos   R_ARM_LDR_PC_G0 = 4,		// Static	ARM	S + A - P
70*be12b8bcSchristos   R_ARM_ABS16 = 5,		// Static	Data	S + A
71*be12b8bcSchristos   R_ARM_ABS12 = 6,		// Static	ARM	S + A
72*be12b8bcSchristos   R_ARM_THM_ABS5 = 7,		// Static	Thumb16	S + A
73*be12b8bcSchristos   R_ARM_ABS8 = 8,		// Static	Data	S + A
74*be12b8bcSchristos   R_ARM_SBREL32 = 9,		// Static	Data	((S + A) | T) - B(S)
75*be12b8bcSchristos   R_ARM_THM_CALL = 10,		// Static	Thumb32	((S + A) | T) - P
76*be12b8bcSchristos   R_ARM_THM_PC8 = 11,		// Static	Thumb16
77*be12b8bcSchristos   R_ARM_BREL_ADJ = 12,		// Dynamic	Data	DeltaB(S) + A
78*be12b8bcSchristos   R_ARM_TLS_DESC = 13,		// Dynamic	Data
79*be12b8bcSchristos   R_ARM_THM_SWI8 = 14,		// Obsolete
80*be12b8bcSchristos   R_ARM_XPC25 = 15,		// Obsolete
81*be12b8bcSchristos   R_ARM_THM_XPC22 = 16,		// Obsolete
82*be12b8bcSchristos   R_ARM_TLS_DTPMOD32 = 17,	// Dynamic	Data	Module(S)
83*be12b8bcSchristos   R_ARM_TLS_DTPOFF32 = 18,	// Dynamic	Data	S + A - TLS
84*be12b8bcSchristos   R_ARM_TLS_TPOFF32 = 19,	// Dynamic	Data	S + A - tp
85*be12b8bcSchristos   R_ARM_COPY = 20,		// Dynamic	Misc
86*be12b8bcSchristos   R_ARM_GLOB_DAT = 21,		// Dynamic	Data	(S + A) | T
87*be12b8bcSchristos   R_ARM_JUMP_SLOT = 22,		// Dynamic	Data	(S + A) | T
88*be12b8bcSchristos   R_ARM_RELATIVE = 23,		// Dynamic	Data	B(S) + A
89*be12b8bcSchristos   R_ARM_GOTOFF32 = 24,		// Static	Data	(((S + A) | T) - GOT_ORG
90*be12b8bcSchristos   R_ARM_BASE_PREL = 25,		// Static	Data	B(S) + A - P
91*be12b8bcSchristos   R_ARM_GOT_BREL = 26,		// Static	Data	GOT(S) + A - GOT_ORG
92*be12b8bcSchristos   R_ARM_PLT32 = 27,		// Deprecated	ARM	((S + A) | T) - P
93*be12b8bcSchristos   R_ARM_CALL = 28,		// Static	ARM	((S + A) | T) - P
94*be12b8bcSchristos   R_ARM_JUMP24 = 29,		// Static	ARM	((S + A) | T) - P
95*be12b8bcSchristos   R_ARM_THM_JUMP24 = 30,	// Static	Thumb32	((S + A) | T) - P
96*be12b8bcSchristos   R_ARM_BASE_ABS = 31,		// Static	Data	B(S) + A
97*be12b8bcSchristos   R_ARM_ALU_PCREL_7_0 = 32,	// Obsolete
98*be12b8bcSchristos   R_ARM_ALU_PCREL_15_8 = 33,	// Obsolete
99*be12b8bcSchristos   R_ARM_ALU_PCREL_23_15 = 34,	// Obsolete
100*be12b8bcSchristos   R_ARM_LDR_SBREL_11_0_NC = 35,	// Deprecated	ARM	S + A - B(S)
101*be12b8bcSchristos   R_ARM_ALU_SBREL_19_12_NC = 36,// Deprecated	ARM	S + A - B(S)
102*be12b8bcSchristos   R_ARM_ALU_SBREL_27_20_CK = 37,// Deprecated	ARM	S + A - B(S)
103*be12b8bcSchristos   R_ARM_TARGET1 = 38,		// Data		Misc	(S + A) | T or
104*be12b8bcSchristos 				//			((S + A) | T) - P
105*be12b8bcSchristos   R_ARM_SBREL31 = 39,		// Deprecated	Data	((S + A) | T) - B(S)
106*be12b8bcSchristos   R_ARM_V4BX = 40,		// Static	Misc
107*be12b8bcSchristos   R_ARM_TARGET2 = 41,		// Static	Misc
108*be12b8bcSchristos   R_ARM_PREL31 = 42,		// Static	Data	((S + A) | T) - P
109*be12b8bcSchristos   R_ARM_MOVW_ABS_NC = 43,	// Static	ARM	(S + A) | T
110*be12b8bcSchristos   R_ARM_MOVT_ABS = 44,		// Static	ARM	S + A
111*be12b8bcSchristos   R_ARM_MOVW_PREL_NC = 45,	// Static	ARM	((S + A) | T) - P
112*be12b8bcSchristos   R_ARM_MOVT_PREL = 46,		// Static	ARM	S + A - P
113*be12b8bcSchristos   R_ARM_THM_MOVW_ABS_NC = 47,	// Static	Thumb32	(S + A) | T
114*be12b8bcSchristos   R_ARM_THM_MOVT_ABS = 48,	// Static	Thumb32	S + A - P
115*be12b8bcSchristos   R_ARM_THM_MOVW_PREL_NC =  49,	// Static	Thumb32	((S + A) | T) - P
116*be12b8bcSchristos   R_ARM_THM_MOVT_PREL = 50,	// Static	Thumb32	S + A - P
117*be12b8bcSchristos   R_ARM_THM_JUMP19 = 51,	// Static	Thumb32	((S + A) | T) - P
118*be12b8bcSchristos   R_ARM_THM_JUMP6 = 52,		// Static	Thumb16	S + A - P
119*be12b8bcSchristos   R_ARM_THM_ALU_PREL_11_0 = 53,	// Static	Thumb32	((S + A) | T) - Pa
120*be12b8bcSchristos   R_ARM_THM_PC12 = 54,		// Static	Thumb32	S + A - Pa
121*be12b8bcSchristos   R_ARM_ABS32_NOI = 55,		// Static	Data	S + A
122*be12b8bcSchristos   R_ARM_REL32_NOI = 56,		// Static	Data	S + A - P
123*be12b8bcSchristos   R_ARM_ALU_PC_G0_NC = 57,	// Static	ARM	((S + A) | T) - P
124*be12b8bcSchristos   R_ARM_ALU_PC_G0 = 58,		// Static	ARM	((S + A) | T) - P
125*be12b8bcSchristos   R_ARM_ALU_PC_G1_NC = 59,	// Static	ARM	((S + A) | T) - P
126*be12b8bcSchristos   R_ARM_ALU_PC_G1 = 60,		// Static	ARM	((S + A) | T) - P
127*be12b8bcSchristos   R_ARM_ALU_PC_G2 = 61,		// Static	ARM	((S + A) | T) - P
128*be12b8bcSchristos   R_ARM_LDR_PC_G1 = 62,		// Static	ARM	S + A - P
129*be12b8bcSchristos   R_ARM_LDR_PC_G2 = 63,		// Static	ARM	S + A - P
130*be12b8bcSchristos   R_ARM_LDRS_PC_G0 = 64,	// Static	ARM	S + A - P
131*be12b8bcSchristos   R_ARM_LDRS_PC_G1 = 65,	// Static	ARM	S + A - P
132*be12b8bcSchristos   R_ARM_LDRS_PC_G2 = 66,	// Static	ARM	S + A - P
133*be12b8bcSchristos   R_ARM_LDC_PC_G0 = 67,		// Static	ARM	S + A - P
134*be12b8bcSchristos   R_ARM_LDC_PC_G1 = 68,		// Static	ARM	S + A - P
135*be12b8bcSchristos   R_ARM_LDC_PC_G2 = 69,		// Static	ARM	S + A - P
136*be12b8bcSchristos   R_ARM_ALU_SB_G0_NC = 70,	// Static	ARM	((S + A) | T) - B(S)
137*be12b8bcSchristos   R_ARM_ALU_SB_G0 = 71,		// Static	ARM	((S + A) | T) - B(S)
138*be12b8bcSchristos   R_ARM_ALU_SB_G1_NC = 72,	// Static	ARM	((S + A) | T) - B(S)
139*be12b8bcSchristos   R_ARM_ALU_SB_G1 = 73,		// Static	ARM	((S + A) | T) - B(S)
140*be12b8bcSchristos   R_ARM_ALU_SB_G2 = 74,		// Static	ARM	((S + A) | T) - B(S)
141*be12b8bcSchristos   R_ARM_LDR_SB_G0 = 75,		// Static	ARM	S + A - B(S)
142*be12b8bcSchristos   R_ARM_LDR_SB_G1 = 76,		// Static	ARM	S + A - B(S)
143*be12b8bcSchristos   R_ARM_LDR_SB_G2 = 77,		// Static	ARM	S + A - B(S)
144*be12b8bcSchristos   R_ARM_LDRS_SB_G0 = 78,	// Static	ARM	S + A - B(S)
145*be12b8bcSchristos   R_ARM_LDRS_SB_G1 = 79,	// Static	ARM	S + A - B(S)
146*be12b8bcSchristos   R_ARM_LDRS_SB_G2 = 80,	// Static	ARM	S + A - B(S)
147*be12b8bcSchristos   R_ARM_LDC_SB_G0 = 81,		// Static	ARM	S + A - B(S)
148*be12b8bcSchristos   R_ARM_LDC_SB_G1 = 82,		// Static	ARM	S + A - B(S)
149*be12b8bcSchristos   R_ARM_LDC_SB_G2 = 83,		// Static	ARM	S + A - B(S)
150*be12b8bcSchristos   R_ARM_MOVW_BREL_NC = 84,	// Static	ARM	((S + A) | T) - B(S)
151*be12b8bcSchristos   R_ARM_MOVT_BREL = 85,		// Static	ARM	S + A - B(S)
152*be12b8bcSchristos   R_ARM_MOVW_BREL = 86,		// Static	ARM	((S + A) | T) - B(S)
153*be12b8bcSchristos   R_ARM_THM_MOVW_BREL_NC = 87,	// Static	Thumb32	((S + A) | T) - B(S)
154*be12b8bcSchristos   R_ARM_THM_MOVT_BREL = 88,	// Static	Thumb32	S + A - B(S)
155*be12b8bcSchristos   R_ARM_THM_MOVW_BREL = 89,	// Static	Thumb32	((S + A) | T) - B(S)
156*be12b8bcSchristos   R_ARM_TLS_GOTDESC = 90,	// Static	Data
157*be12b8bcSchristos   R_ARM_TLS_CALL = 91,		// Static	ARM
158*be12b8bcSchristos   R_ARM_TLS_DESCSEQ = 92,	// Static	ARM	TLS relaxation
159*be12b8bcSchristos   R_ARM_THM_TLS_CALL = 93,	// Static	Thumb32
160*be12b8bcSchristos   R_ARM_PLT32_ABS =  94,	// Static	Data	PLT(S) + A
161*be12b8bcSchristos   R_ARM_GOT_ABS =  95,		// Static	Data	GOT(S) + A
162*be12b8bcSchristos   R_ARM_GOT_PREL = 96,		// Static	Data	GOT(S) + A - P
163*be12b8bcSchristos   R_ARM_GOT_BREL12 =  97,	// Static	ARM	GOT(S) + A - GOT_ORG
164*be12b8bcSchristos   R_ARM_GOTOFF12 =  98,		// Static	ARM	S + A - GOT_ROG
165*be12b8bcSchristos   R_ARM_GOTRELAX =  99,		// Static	Misc
166*be12b8bcSchristos   R_ARM_GNU_VTENTRY = 100,	// Deprecated	Data
167*be12b8bcSchristos   R_ARM_GNU_VTINHERIT = 101,	// Deprecated	Data
168*be12b8bcSchristos   R_ARM_THM_JUMP11 = 102,	// Static	Thumb16	S + A - P
169*be12b8bcSchristos   R_ARM_THM_JUMP8 = 103,	// Static	Thumb16	S + A - P
170*be12b8bcSchristos   R_ARM_TLS_GD32 = 104,		// Static	Data	GOT(S) + A - P
171*be12b8bcSchristos   R_ARM_TLS_LDM32 = 105,	// Static	Data	GOT(S) + A - P
172*be12b8bcSchristos   R_ARM_TLS_LDO32 = 106,	// Static	Data	S + A - TLS
173*be12b8bcSchristos   R_ARM_TLS_IE32 = 107,		// Static	Data	GOT(S) + A - P
174*be12b8bcSchristos   R_ARM_TLS_LE32 = 108,		// Static	Data	S + A - tp
175*be12b8bcSchristos   R_ARM_TLS_LDO12 = 109,	// Static	ARM	S + A - TLS
176*be12b8bcSchristos   R_ARM_TLS_LE12 = 110,		// Static	ARM	S + A - tp
177*be12b8bcSchristos   R_ARM_TLS_IE12GP = 111,	// Static	ARM	GOT(S) + A - GOT_ORG
178*be12b8bcSchristos   R_ARM_PRIVATE_0 = 112,	// Private (n = 0, 1, ... 15)
179*be12b8bcSchristos   R_ARM_PRIVATE_1 = 113,
180*be12b8bcSchristos   R_ARM_PRIVATE_2 = 114,
181*be12b8bcSchristos   R_ARM_PRIVATE_3 = 115,
182*be12b8bcSchristos   R_ARM_PRIVATE_4 = 116,
183*be12b8bcSchristos   R_ARM_PRIVATE_5 = 117,
184*be12b8bcSchristos   R_ARM_PRIVATE_6 = 118,
185*be12b8bcSchristos   R_ARM_PRIVATE_7 = 119,
186*be12b8bcSchristos   R_ARM_PRIVATE_8 = 120,
187*be12b8bcSchristos   R_ARM_PRIVATE_9 = 121,
188*be12b8bcSchristos   R_ARM_PRIVATE_10 = 122,
189*be12b8bcSchristos   R_ARM_PRIVATE_11 = 123,
190*be12b8bcSchristos   R_ARM_PRIVATE_12 = 124,
191*be12b8bcSchristos   R_ARM_PRIVATE_13 = 125,
192*be12b8bcSchristos   R_ARM_PRIVATE_14 = 126,
193*be12b8bcSchristos   R_ARM_PRIVATE_15 = 127,
194*be12b8bcSchristos   R_ARM_ME_TOO = 128,		// Obsolete
195*be12b8bcSchristos   R_ARM_THM_TLS_DESCSEQ16 = 129,// Static	Thumb16
196*be12b8bcSchristos   R_ARM_THM_TLS_DESCSEQ32 = 130,// Static	Thumb32
197*be12b8bcSchristos   // 131 - 139			Unallocated
198*be12b8bcSchristos   // 140 - 159			Dynamic		Reserved for future allocation
199*be12b8bcSchristos   // 160 - 255			Unallocated
200*be12b8bcSchristos };
201*be12b8bcSchristos 
202*be12b8bcSchristos // e_flags values used for ARM.  We only support flags defined in AAELF.
203*be12b8bcSchristos 
204*be12b8bcSchristos enum
205*be12b8bcSchristos {
206*be12b8bcSchristos   EF_ARM_BE8 = 0x00800000,
207*be12b8bcSchristos 
208*be12b8bcSchristos   // Mask to extract EABI version, not really a flag value.
209*be12b8bcSchristos   EF_ARM_EABIMASK = 0xFF000000,
210*be12b8bcSchristos 
211*be12b8bcSchristos   EF_ARM_EABI_UNKNOWN = 0x00000000,
212*be12b8bcSchristos   EF_ARM_EABI_VER1 = 0x01000000,
213*be12b8bcSchristos   EF_ARM_EABI_VER2 = 0x02000000,
214*be12b8bcSchristos   EF_ARM_EABI_VER3 = 0x03000000,
215*be12b8bcSchristos   EF_ARM_EABI_VER4 = 0x04000000,
216*be12b8bcSchristos   EF_ARM_EABI_VER5 = 0x05000000,
217*be12b8bcSchristos };
218*be12b8bcSchristos 
219*be12b8bcSchristos // Extract EABI version from flags.
220*be12b8bcSchristos 
221*be12b8bcSchristos inline Elf_Word
222*be12b8bcSchristos arm_eabi_version(Elf_Word flags)
223*be12b8bcSchristos { return flags & EF_ARM_EABIMASK; }
224*be12b8bcSchristos 
225*be12b8bcSchristos // Values for the Tag_CPU_arch EABI attribute.
226*be12b8bcSchristos enum
227*be12b8bcSchristos {
228*be12b8bcSchristos   TAG_CPU_ARCH_PRE_V4,
229*be12b8bcSchristos   TAG_CPU_ARCH_V4,
230*be12b8bcSchristos   TAG_CPU_ARCH_V4T,
231*be12b8bcSchristos   TAG_CPU_ARCH_V5T,
232*be12b8bcSchristos   TAG_CPU_ARCH_V5TE,
233*be12b8bcSchristos   TAG_CPU_ARCH_V5TEJ,
234*be12b8bcSchristos   TAG_CPU_ARCH_V6,
235*be12b8bcSchristos   TAG_CPU_ARCH_V6KZ,
236*be12b8bcSchristos   TAG_CPU_ARCH_V6T2,
237*be12b8bcSchristos   TAG_CPU_ARCH_V6K,
238*be12b8bcSchristos   TAG_CPU_ARCH_V7,
239*be12b8bcSchristos   TAG_CPU_ARCH_V6_M,
240*be12b8bcSchristos   TAG_CPU_ARCH_V6S_M,
241*be12b8bcSchristos   TAG_CPU_ARCH_V7E_M,
242*be12b8bcSchristos   MAX_TAG_CPU_ARCH = TAG_CPU_ARCH_V7E_M,
243*be12b8bcSchristos   // Pseudo-architecture to allow objects to be compatible with the subset of
244*be12b8bcSchristos   // armv4t and armv6-m.  This value should never be stored in object files.
245*be12b8bcSchristos   TAG_CPU_ARCH_V4T_PLUS_V6_M = (MAX_TAG_CPU_ARCH + 1)
246*be12b8bcSchristos };
247*be12b8bcSchristos 
248*be12b8bcSchristos // EABI object attributes.
249*be12b8bcSchristos enum
250*be12b8bcSchristos {
251*be12b8bcSchristos   // 0-3 are generic.
252*be12b8bcSchristos   Tag_CPU_raw_name = 4,
253*be12b8bcSchristos   Tag_CPU_name = 5,
254*be12b8bcSchristos   Tag_CPU_arch = 6,
255*be12b8bcSchristos   Tag_CPU_arch_profile = 7,
256*be12b8bcSchristos   Tag_ARM_ISA_use = 8,
257*be12b8bcSchristos   Tag_THUMB_ISA_use = 9,
258*be12b8bcSchristos   Tag_FP_arch = 10,
259*be12b8bcSchristos   Tag_WMMX_arch = 11,
260*be12b8bcSchristos   Tag_Advanced_SIMD_arch = 12,
261*be12b8bcSchristos   Tag_PCS_config = 13,
262*be12b8bcSchristos   Tag_ABI_PCS_R9_use = 14,
263*be12b8bcSchristos   Tag_ABI_PCS_RW_data = 15,
264*be12b8bcSchristos   Tag_ABI_PCS_RO_data = 16,
265*be12b8bcSchristos   Tag_ABI_PCS_GOT_use = 17,
266*be12b8bcSchristos   Tag_ABI_PCS_wchar_t = 18,
267*be12b8bcSchristos   Tag_ABI_FP_rounding = 19,
268*be12b8bcSchristos   Tag_ABI_FP_denormal = 20,
269*be12b8bcSchristos   Tag_ABI_FP_exceptions = 21,
270*be12b8bcSchristos   Tag_ABI_FP_user_exceptions = 22,
271*be12b8bcSchristos   Tag_ABI_FP_number_model = 23,
272*be12b8bcSchristos   Tag_ABI_align_needed = 24,
273*be12b8bcSchristos   Tag_ABI_align_preserved = 25,
274*be12b8bcSchristos   Tag_ABI_enum_size = 26,
275*be12b8bcSchristos   Tag_ABI_HardFP_use = 27,
276*be12b8bcSchristos   Tag_ABI_VFP_args = 28,
277*be12b8bcSchristos   Tag_ABI_WMMX_args = 29,
278*be12b8bcSchristos   Tag_ABI_optimization_goals = 30,
279*be12b8bcSchristos   Tag_ABI_FP_optimization_goals = 31,
280*be12b8bcSchristos   // 32 is generic (Tag_compatibility).
281*be12b8bcSchristos   Tag_undefined33 = 33,
282*be12b8bcSchristos   Tag_CPU_unaligned_access = 34,
283*be12b8bcSchristos   Tag_undefined35 = 35,
284*be12b8bcSchristos   Tag_FP_HP_extension = 36,
285*be12b8bcSchristos   Tag_undefined37 = 37,
286*be12b8bcSchristos   Tag_ABI_FP_16bit_format = 38,
287*be12b8bcSchristos   Tag_undefined39 = 39,
288*be12b8bcSchristos   Tag_undefined40 = 40,
289*be12b8bcSchristos   Tag_undefined41 = 41,
290*be12b8bcSchristos   Tag_MPextension_use = 42,
291*be12b8bcSchristos   Tag_undefined43 = 43,
292*be12b8bcSchristos   Tag_DIV_use = 44,
293*be12b8bcSchristos   Tag_nodefaults = 64,
294*be12b8bcSchristos   Tag_also_compatible_with = 65,
295*be12b8bcSchristos   Tag_T2EE_use = 66,
296*be12b8bcSchristos   Tag_conformance = 67,
297*be12b8bcSchristos   Tag_Virtualization_use = 68,
298*be12b8bcSchristos   Tag_undefined69 = 69,
299*be12b8bcSchristos   Tag_MPextension_use_legacy = 70,
300*be12b8bcSchristos 
301*be12b8bcSchristos   // The following tags are legacy names for other tags.
302*be12b8bcSchristos   Tag_VFP_arch = Tag_FP_arch,
303*be12b8bcSchristos   Tag_ABI_align8_needed = Tag_ABI_align_needed,
304*be12b8bcSchristos   Tag_ABI_align8_preserved = Tag_ABI_align_preserved,
305*be12b8bcSchristos   Tag_VFP_HP_extension = Tag_FP_HP_extension
306*be12b8bcSchristos };
307*be12b8bcSchristos 
308*be12b8bcSchristos // Values for Tag_ABI_PCS_R9_use.
309*be12b8bcSchristos enum
310*be12b8bcSchristos {
311*be12b8bcSchristos   AEABI_R9_V6 = 0,
312*be12b8bcSchristos   AEABI_R9_SB = 1,
313*be12b8bcSchristos   AEABI_R9_TLS = 2,
314*be12b8bcSchristos   AEABI_R9_unused = 3
315*be12b8bcSchristos };
316*be12b8bcSchristos 
317*be12b8bcSchristos // Values for Tag_ABI_PCS_RW_data.
318*be12b8bcSchristos enum
319*be12b8bcSchristos {
320*be12b8bcSchristos   AEABI_PCS_RW_data_absolute = 0,
321*be12b8bcSchristos   AEABI_PCS_RW_data_PCrel = 1,
322*be12b8bcSchristos   AEABI_PCS_RW_data_SBrel = 2,
323*be12b8bcSchristos   AEABI_PCS_RW_data_unused = 3
324*be12b8bcSchristos };
325*be12b8bcSchristos 
326*be12b8bcSchristos // Values for Tag_ABI_enum_size.
327*be12b8bcSchristos enum
328*be12b8bcSchristos {
329*be12b8bcSchristos   AEABI_enum_unused = 0,
330*be12b8bcSchristos   AEABI_enum_short = 1,
331*be12b8bcSchristos   AEABI_enum_wide = 2,
332*be12b8bcSchristos   AEABI_enum_forced_wide = 3
333*be12b8bcSchristos };
334*be12b8bcSchristos 
335*be12b8bcSchristos // For Exception Index Table. (Exception handling ABI for the ARM
336*be12b8bcSchristos // architectue, Section 5)
337*be12b8bcSchristos enum
338*be12b8bcSchristos {
339*be12b8bcSchristos   EXIDX_CANTUNWIND = 1,
340*be12b8bcSchristos };
341*be12b8bcSchristos 
342*be12b8bcSchristos } // End namespace elfcpp.
343*be12b8bcSchristos 
344*be12b8bcSchristos #endif // !defined(ELFCPP_ARM_H)
345