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