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