xref: /netbsd-src/external/gpl3/binutils.old/dist/elfcpp/arm.h (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos // arm.h -- ELF definitions specific to EM_ARM  -*- C++ -*-
275fd0b74Schristos 
3*e992f068Schristos // Copyright (C) 2009-2022 Free Software Foundation, Inc.
475fd0b74Schristos // Written by Doug Kwan <dougkwan@google.com>.
575fd0b74Schristos 
675fd0b74Schristos // This file is part of elfcpp.
775fd0b74Schristos 
875fd0b74Schristos // This program is free software; you can redistribute it and/or
975fd0b74Schristos // modify it under the terms of the GNU Library General Public License
1075fd0b74Schristos // as published by the Free Software Foundation; either version 2, or
1175fd0b74Schristos // (at your option) any later version.
1275fd0b74Schristos 
1375fd0b74Schristos // In addition to the permissions in the GNU Library General Public
1475fd0b74Schristos // License, the Free Software Foundation gives you unlimited
1575fd0b74Schristos // permission to link the compiled version of this file into
1675fd0b74Schristos // combinations with other programs, and to distribute those
1775fd0b74Schristos // combinations without any restriction coming from the use of this
1875fd0b74Schristos // file.  (The Library Public License restrictions do apply in other
1975fd0b74Schristos // respects; for example, they cover modification of the file, and
2075fd0b74Schristos // distribution when not linked into a combined executable.)
2175fd0b74Schristos 
2275fd0b74Schristos // This program is distributed in the hope that it will be useful, but
2375fd0b74Schristos // WITHOUT ANY WARRANTY; without even the implied warranty of
2475fd0b74Schristos // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2575fd0b74Schristos // Library General Public License for more details.
2675fd0b74Schristos 
2775fd0b74Schristos // You should have received a copy of the GNU Library General Public
2875fd0b74Schristos // License along with this program; if not, write to the Free Software
2975fd0b74Schristos // Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
3075fd0b74Schristos // 02110-1301, USA.
3175fd0b74Schristos 
3275fd0b74Schristos #ifndef ELFCPP_ARM_H
3375fd0b74Schristos #define ELFCPP_ARM_H
3475fd0b74Schristos 
3575fd0b74Schristos // The relocation type information is taken from:
3675fd0b74Schristos //
3775fd0b74Schristos //   ELF for the ARM Architecture
3875fd0b74Schristos //   Document number: ARM IHI 0044C, current through ABI release 2.07
3975fd0b74Schristos //   Date of Issue: 10th October, 2008
4075fd0b74Schristos //
4175fd0b74Schristos 
4275fd0b74Schristos namespace elfcpp
4375fd0b74Schristos {
4475fd0b74Schristos 
4575fd0b74Schristos //
4675fd0b74Schristos // ARM Relocations Codes
4775fd0b74Schristos //
4875fd0b74Schristos 
4975fd0b74Schristos // Operation notes:
5075fd0b74Schristos //   S: Address of the symbol.
5175fd0b74Schristos //   A: Addend for relocation.
5275fd0b74Schristos //   P: Address of the place being relocated.
5375fd0b74Schristos //   Pa: Adjusted address of the place being relocated (P & 0xfffffffc)
5475fd0b74Schristos //   T: is 1 if S has type STT_FUNC and the symbol addresses a Thumb
5575fd0b74Schristos //      instruction.Thumb-bit; it is 0 otherwise.
5675fd0b74Schristos //   B(S): Addressing origin of the output segment defining S.
5775fd0b74Schristos //   GOT_ORG: Addressing origin of the Global Offset Table.
5875fd0b74Schristos //   GOT(S): Address of the GOT entry for S.
5975fd0b74Schristos //
6075fd0b74Schristos 
6175fd0b74Schristos enum
6275fd0b74Schristos {
6375fd0b74Schristos 				// Type		Class	Operation
6475fd0b74Schristos 				// ------------------------------
6575fd0b74Schristos   R_ARM_NONE = 0,		// Static	Misc
6675fd0b74Schristos   R_ARM_PC24 = 1,		// Deprecated	ARM	((S + A) | T) - P
6775fd0b74Schristos   R_ARM_ABS32 = 2,		// Static	Data	(S + A) | T
6875fd0b74Schristos   R_ARM_REL32 = 3,		// Static	Data	((S + A) | T) - P
6975fd0b74Schristos   R_ARM_LDR_PC_G0 = 4,		// Static	ARM	S + A - P
7075fd0b74Schristos   R_ARM_ABS16 = 5,		// Static	Data	S + A
7175fd0b74Schristos   R_ARM_ABS12 = 6,		// Static	ARM	S + A
7275fd0b74Schristos   R_ARM_THM_ABS5 = 7,		// Static	Thumb16	S + A
7375fd0b74Schristos   R_ARM_ABS8 = 8,		// Static	Data	S + A
7475fd0b74Schristos   R_ARM_SBREL32 = 9,		// Static	Data	((S + A) | T) - B(S)
7575fd0b74Schristos   R_ARM_THM_CALL = 10,		// Static	Thumb32	((S + A) | T) - P
7675fd0b74Schristos   R_ARM_THM_PC8 = 11,		// Static	Thumb16
7775fd0b74Schristos   R_ARM_BREL_ADJ = 12,		// Dynamic	Data	DeltaB(S) + A
7875fd0b74Schristos   R_ARM_TLS_DESC = 13,		// Dynamic	Data
7975fd0b74Schristos   R_ARM_THM_SWI8 = 14,		// Obsolete
8075fd0b74Schristos   R_ARM_XPC25 = 15,		// Obsolete
8175fd0b74Schristos   R_ARM_THM_XPC22 = 16,		// Obsolete
8275fd0b74Schristos   R_ARM_TLS_DTPMOD32 = 17,	// Dynamic	Data	Module(S)
8375fd0b74Schristos   R_ARM_TLS_DTPOFF32 = 18,	// Dynamic	Data	S + A - TLS
8475fd0b74Schristos   R_ARM_TLS_TPOFF32 = 19,	// Dynamic	Data	S + A - tp
8575fd0b74Schristos   R_ARM_COPY = 20,		// Dynamic	Misc
8675fd0b74Schristos   R_ARM_GLOB_DAT = 21,		// Dynamic	Data	(S + A) | T
8775fd0b74Schristos   R_ARM_JUMP_SLOT = 22,		// Dynamic	Data	(S + A) | T
8875fd0b74Schristos   R_ARM_RELATIVE = 23,		// Dynamic	Data	B(S) + A
8975fd0b74Schristos   R_ARM_GOTOFF32 = 24,		// Static	Data	(((S + A) | T) - GOT_ORG
9075fd0b74Schristos   R_ARM_BASE_PREL = 25,		// Static	Data	B(S) + A - P
9175fd0b74Schristos   R_ARM_GOT_BREL = 26,		// Static	Data	GOT(S) + A - GOT_ORG
9275fd0b74Schristos   R_ARM_PLT32 = 27,		// Deprecated	ARM	((S + A) | T) - P
9375fd0b74Schristos   R_ARM_CALL = 28,		// Static	ARM	((S + A) | T) - P
9475fd0b74Schristos   R_ARM_JUMP24 = 29,		// Static	ARM	((S + A) | T) - P
9575fd0b74Schristos   R_ARM_THM_JUMP24 = 30,	// Static	Thumb32	((S + A) | T) - P
9675fd0b74Schristos   R_ARM_BASE_ABS = 31,		// Static	Data	B(S) + A
9775fd0b74Schristos   R_ARM_ALU_PCREL_7_0 = 32,	// Obsolete
9875fd0b74Schristos   R_ARM_ALU_PCREL_15_8 = 33,	// Obsolete
9975fd0b74Schristos   R_ARM_ALU_PCREL_23_15 = 34,	// Obsolete
10075fd0b74Schristos   R_ARM_LDR_SBREL_11_0_NC = 35,	// Deprecated	ARM	S + A - B(S)
10175fd0b74Schristos   R_ARM_ALU_SBREL_19_12_NC = 36,// Deprecated	ARM	S + A - B(S)
10275fd0b74Schristos   R_ARM_ALU_SBREL_27_20_CK = 37,// Deprecated	ARM	S + A - B(S)
10375fd0b74Schristos   R_ARM_TARGET1 = 38,		// Data		Misc	(S + A) | T or
10475fd0b74Schristos 				//			((S + A) | T) - P
10575fd0b74Schristos   R_ARM_SBREL31 = 39,		// Deprecated	Data	((S + A) | T) - B(S)
10675fd0b74Schristos   R_ARM_V4BX = 40,		// Static	Misc
10775fd0b74Schristos   R_ARM_TARGET2 = 41,		// Static	Misc
10875fd0b74Schristos   R_ARM_PREL31 = 42,		// Static	Data	((S + A) | T) - P
10975fd0b74Schristos   R_ARM_MOVW_ABS_NC = 43,	// Static	ARM	(S + A) | T
11075fd0b74Schristos   R_ARM_MOVT_ABS = 44,		// Static	ARM	S + A
11175fd0b74Schristos   R_ARM_MOVW_PREL_NC = 45,	// Static	ARM	((S + A) | T) - P
11275fd0b74Schristos   R_ARM_MOVT_PREL = 46,		// Static	ARM	S + A - P
11375fd0b74Schristos   R_ARM_THM_MOVW_ABS_NC = 47,	// Static	Thumb32	(S + A) | T
11475fd0b74Schristos   R_ARM_THM_MOVT_ABS = 48,	// Static	Thumb32	S + A - P
11575fd0b74Schristos   R_ARM_THM_MOVW_PREL_NC =  49,	// Static	Thumb32	((S + A) | T) - P
11675fd0b74Schristos   R_ARM_THM_MOVT_PREL = 50,	// Static	Thumb32	S + A - P
11775fd0b74Schristos   R_ARM_THM_JUMP19 = 51,	// Static	Thumb32	((S + A) | T) - P
11875fd0b74Schristos   R_ARM_THM_JUMP6 = 52,		// Static	Thumb16	S + A - P
11975fd0b74Schristos   R_ARM_THM_ALU_PREL_11_0 = 53,	// Static	Thumb32	((S + A) | T) - Pa
12075fd0b74Schristos   R_ARM_THM_PC12 = 54,		// Static	Thumb32	S + A - Pa
12175fd0b74Schristos   R_ARM_ABS32_NOI = 55,		// Static	Data	S + A
12275fd0b74Schristos   R_ARM_REL32_NOI = 56,		// Static	Data	S + A - P
12375fd0b74Schristos   R_ARM_ALU_PC_G0_NC = 57,	// Static	ARM	((S + A) | T) - P
12475fd0b74Schristos   R_ARM_ALU_PC_G0 = 58,		// Static	ARM	((S + A) | T) - P
12575fd0b74Schristos   R_ARM_ALU_PC_G1_NC = 59,	// Static	ARM	((S + A) | T) - P
12675fd0b74Schristos   R_ARM_ALU_PC_G1 = 60,		// Static	ARM	((S + A) | T) - P
12775fd0b74Schristos   R_ARM_ALU_PC_G2 = 61,		// Static	ARM	((S + A) | T) - P
12875fd0b74Schristos   R_ARM_LDR_PC_G1 = 62,		// Static	ARM	S + A - P
12975fd0b74Schristos   R_ARM_LDR_PC_G2 = 63,		// Static	ARM	S + A - P
13075fd0b74Schristos   R_ARM_LDRS_PC_G0 = 64,	// Static	ARM	S + A - P
13175fd0b74Schristos   R_ARM_LDRS_PC_G1 = 65,	// Static	ARM	S + A - P
13275fd0b74Schristos   R_ARM_LDRS_PC_G2 = 66,	// Static	ARM	S + A - P
13375fd0b74Schristos   R_ARM_LDC_PC_G0 = 67,		// Static	ARM	S + A - P
13475fd0b74Schristos   R_ARM_LDC_PC_G1 = 68,		// Static	ARM	S + A - P
13575fd0b74Schristos   R_ARM_LDC_PC_G2 = 69,		// Static	ARM	S + A - P
13675fd0b74Schristos   R_ARM_ALU_SB_G0_NC = 70,	// Static	ARM	((S + A) | T) - B(S)
13775fd0b74Schristos   R_ARM_ALU_SB_G0 = 71,		// Static	ARM	((S + A) | T) - B(S)
13875fd0b74Schristos   R_ARM_ALU_SB_G1_NC = 72,	// Static	ARM	((S + A) | T) - B(S)
13975fd0b74Schristos   R_ARM_ALU_SB_G1 = 73,		// Static	ARM	((S + A) | T) - B(S)
14075fd0b74Schristos   R_ARM_ALU_SB_G2 = 74,		// Static	ARM	((S + A) | T) - B(S)
14175fd0b74Schristos   R_ARM_LDR_SB_G0 = 75,		// Static	ARM	S + A - B(S)
14275fd0b74Schristos   R_ARM_LDR_SB_G1 = 76,		// Static	ARM	S + A - B(S)
14375fd0b74Schristos   R_ARM_LDR_SB_G2 = 77,		// Static	ARM	S + A - B(S)
14475fd0b74Schristos   R_ARM_LDRS_SB_G0 = 78,	// Static	ARM	S + A - B(S)
14575fd0b74Schristos   R_ARM_LDRS_SB_G1 = 79,	// Static	ARM	S + A - B(S)
14675fd0b74Schristos   R_ARM_LDRS_SB_G2 = 80,	// Static	ARM	S + A - B(S)
14775fd0b74Schristos   R_ARM_LDC_SB_G0 = 81,		// Static	ARM	S + A - B(S)
14875fd0b74Schristos   R_ARM_LDC_SB_G1 = 82,		// Static	ARM	S + A - B(S)
14975fd0b74Schristos   R_ARM_LDC_SB_G2 = 83,		// Static	ARM	S + A - B(S)
15075fd0b74Schristos   R_ARM_MOVW_BREL_NC = 84,	// Static	ARM	((S + A) | T) - B(S)
15175fd0b74Schristos   R_ARM_MOVT_BREL = 85,		// Static	ARM	S + A - B(S)
15275fd0b74Schristos   R_ARM_MOVW_BREL = 86,		// Static	ARM	((S + A) | T) - B(S)
15375fd0b74Schristos   R_ARM_THM_MOVW_BREL_NC = 87,	// Static	Thumb32	((S + A) | T) - B(S)
15475fd0b74Schristos   R_ARM_THM_MOVT_BREL = 88,	// Static	Thumb32	S + A - B(S)
15575fd0b74Schristos   R_ARM_THM_MOVW_BREL = 89,	// Static	Thumb32	((S + A) | T) - B(S)
15675fd0b74Schristos   R_ARM_TLS_GOTDESC = 90,	// Static	Data
15775fd0b74Schristos   R_ARM_TLS_CALL = 91,		// Static	ARM
15875fd0b74Schristos   R_ARM_TLS_DESCSEQ = 92,	// Static	ARM	TLS relaxation
15975fd0b74Schristos   R_ARM_THM_TLS_CALL = 93,	// Static	Thumb32
16075fd0b74Schristos   R_ARM_PLT32_ABS =  94,	// Static	Data	PLT(S) + A
16175fd0b74Schristos   R_ARM_GOT_ABS =  95,		// Static	Data	GOT(S) + A
16275fd0b74Schristos   R_ARM_GOT_PREL = 96,		// Static	Data	GOT(S) + A - P
16375fd0b74Schristos   R_ARM_GOT_BREL12 =  97,	// Static	ARM	GOT(S) + A - GOT_ORG
16475fd0b74Schristos   R_ARM_GOTOFF12 =  98,		// Static	ARM	S + A - GOT_ROG
16575fd0b74Schristos   R_ARM_GOTRELAX =  99,		// Static	Misc
16675fd0b74Schristos   R_ARM_GNU_VTENTRY = 100,	// Deprecated	Data
16775fd0b74Schristos   R_ARM_GNU_VTINHERIT = 101,	// Deprecated	Data
16875fd0b74Schristos   R_ARM_THM_JUMP11 = 102,	// Static	Thumb16	S + A - P
16975fd0b74Schristos   R_ARM_THM_JUMP8 = 103,	// Static	Thumb16	S + A - P
17075fd0b74Schristos   R_ARM_TLS_GD32 = 104,		// Static	Data	GOT(S) + A - P
17175fd0b74Schristos   R_ARM_TLS_LDM32 = 105,	// Static	Data	GOT(S) + A - P
17275fd0b74Schristos   R_ARM_TLS_LDO32 = 106,	// Static	Data	S + A - TLS
17375fd0b74Schristos   R_ARM_TLS_IE32 = 107,		// Static	Data	GOT(S) + A - P
17475fd0b74Schristos   R_ARM_TLS_LE32 = 108,		// Static	Data	S + A - tp
17575fd0b74Schristos   R_ARM_TLS_LDO12 = 109,	// Static	ARM	S + A - TLS
17675fd0b74Schristos   R_ARM_TLS_LE12 = 110,		// Static	ARM	S + A - tp
17775fd0b74Schristos   R_ARM_TLS_IE12GP = 111,	// Static	ARM	GOT(S) + A - GOT_ORG
17875fd0b74Schristos   R_ARM_PRIVATE_0 = 112,	// Private (n = 0, 1, ... 15)
17975fd0b74Schristos   R_ARM_PRIVATE_1 = 113,
18075fd0b74Schristos   R_ARM_PRIVATE_2 = 114,
18175fd0b74Schristos   R_ARM_PRIVATE_3 = 115,
18275fd0b74Schristos   R_ARM_PRIVATE_4 = 116,
18375fd0b74Schristos   R_ARM_PRIVATE_5 = 117,
18475fd0b74Schristos   R_ARM_PRIVATE_6 = 118,
18575fd0b74Schristos   R_ARM_PRIVATE_7 = 119,
18675fd0b74Schristos   R_ARM_PRIVATE_8 = 120,
18775fd0b74Schristos   R_ARM_PRIVATE_9 = 121,
18875fd0b74Schristos   R_ARM_PRIVATE_10 = 122,
18975fd0b74Schristos   R_ARM_PRIVATE_11 = 123,
19075fd0b74Schristos   R_ARM_PRIVATE_12 = 124,
19175fd0b74Schristos   R_ARM_PRIVATE_13 = 125,
19275fd0b74Schristos   R_ARM_PRIVATE_14 = 126,
19375fd0b74Schristos   R_ARM_PRIVATE_15 = 127,
19475fd0b74Schristos   R_ARM_ME_TOO = 128,		// Obsolete
19575fd0b74Schristos   R_ARM_THM_TLS_DESCSEQ16 = 129,// Static	Thumb16
19675fd0b74Schristos   R_ARM_THM_TLS_DESCSEQ32 = 130,// Static	Thumb32
197012573ebSchristos   // 131 - 135			Unallocated
198012573ebSchristos   // Relocations for Armv8.1-M Mainline (BF/BFL)
199012573ebSchristos   R_ARM_THM_BF16 = 136,		// Static       Thumb32 ((S + A) | T) – P
200012573ebSchristos   R_ARM_THM_BF12 = 137,		// Static       Thumb32 ((S + A) | T) – P
201012573ebSchristos   R_ARM_THM_BF18 = 138,		// Static       Thumb32 ((S + A) | T) – P
202012573ebSchristos   // 139			Unallocated
20375fd0b74Schristos   // 140 - 159			Dynamic		Reserved for future allocation
20475fd0b74Schristos   R_ARM_IRELATIVE = 160,	// Dynamic
20575fd0b74Schristos   // 161 - 255			Unallocated
20675fd0b74Schristos };
20775fd0b74Schristos 
20875fd0b74Schristos // e_flags values used for ARM.  We only support flags defined in AAELF.
20975fd0b74Schristos 
21075fd0b74Schristos enum
21175fd0b74Schristos {
21275fd0b74Schristos   EF_ARM_BE8 = 0x00800000,
21375fd0b74Schristos 
21475fd0b74Schristos   // Mask to extract EABI version, not really a flag value.
21575fd0b74Schristos   EF_ARM_EABIMASK = 0xFF000000,
21675fd0b74Schristos 
21775fd0b74Schristos   EF_ARM_EABI_UNKNOWN = 0x00000000,
21875fd0b74Schristos   EF_ARM_EABI_VER1 = 0x01000000,
21975fd0b74Schristos   EF_ARM_EABI_VER2 = 0x02000000,
22075fd0b74Schristos   EF_ARM_EABI_VER3 = 0x03000000,
22175fd0b74Schristos   EF_ARM_EABI_VER4 = 0x04000000,
22275fd0b74Schristos   EF_ARM_EABI_VER5 = 0x05000000,
22375fd0b74Schristos };
22475fd0b74Schristos 
22575fd0b74Schristos // Extract EABI version from flags.
22675fd0b74Schristos 
22775fd0b74Schristos inline Elf_Word
arm_eabi_version(Elf_Word flags)22875fd0b74Schristos arm_eabi_version(Elf_Word flags)
22975fd0b74Schristos { return flags & EF_ARM_EABIMASK; }
23075fd0b74Schristos 
23175fd0b74Schristos // EABI_VER5 e_flags values for identifying soft- and hard-float ABI
23275fd0b74Schristos // choice.
23375fd0b74Schristos enum
23475fd0b74Schristos {
23575fd0b74Schristos   EF_ARM_ABI_FLOAT_SOFT = 0x200,
23675fd0b74Schristos   EF_ARM_ABI_FLOAT_HARD = 0x400,
23775fd0b74Schristos };
23875fd0b74Schristos 
23975fd0b74Schristos // Values for the Tag_CPU_arch EABI attribute.
24075fd0b74Schristos enum
24175fd0b74Schristos {
24275fd0b74Schristos   TAG_CPU_ARCH_PRE_V4,
24375fd0b74Schristos   TAG_CPU_ARCH_V4,
24475fd0b74Schristos   TAG_CPU_ARCH_V4T,
24575fd0b74Schristos   TAG_CPU_ARCH_V5T,
24675fd0b74Schristos   TAG_CPU_ARCH_V5TE,
24775fd0b74Schristos   TAG_CPU_ARCH_V5TEJ,
24875fd0b74Schristos   TAG_CPU_ARCH_V6,
24975fd0b74Schristos   TAG_CPU_ARCH_V6KZ,
25075fd0b74Schristos   TAG_CPU_ARCH_V6T2,
25175fd0b74Schristos   TAG_CPU_ARCH_V6K,
25275fd0b74Schristos   TAG_CPU_ARCH_V7,
25375fd0b74Schristos   TAG_CPU_ARCH_V6_M,
25475fd0b74Schristos   TAG_CPU_ARCH_V6S_M,
25575fd0b74Schristos   TAG_CPU_ARCH_V7E_M,
25675fd0b74Schristos   TAG_CPU_ARCH_V8,
257*e992f068Schristos   TAG_CPU_ARCH_V8R,
258*e992f068Schristos   TAG_CPU_ARCH_V8M_BASE,
259*e992f068Schristos   TAG_CPU_ARCH_V8M_MAIN,
260*e992f068Schristos   TAG_CPU_ARCH_8_1A,
261*e992f068Schristos   TAG_CPU_ARCH_8_2A,
262*e992f068Schristos   TAG_CPU_ARCH_8_3A,
263*e992f068Schristos   TAG_CPU_ARCH_V8_1M_MAIN,
264*e992f068Schristos   TAG_CPU_ARCH_V9,
265*e992f068Schristos   MAX_TAG_CPU_ARCH = TAG_CPU_ARCH_V9,
26675fd0b74Schristos   // Pseudo-architecture to allow objects to be compatible with the subset of
26775fd0b74Schristos   // armv4t and armv6-m.  This value should never be stored in object files.
26875fd0b74Schristos   TAG_CPU_ARCH_V4T_PLUS_V6_M = (MAX_TAG_CPU_ARCH + 1)
26975fd0b74Schristos };
27075fd0b74Schristos 
27175fd0b74Schristos // EABI object attributes.
27275fd0b74Schristos enum
27375fd0b74Schristos {
27475fd0b74Schristos   // 0-3 are generic.
27575fd0b74Schristos   Tag_CPU_raw_name = 4,
27675fd0b74Schristos   Tag_CPU_name = 5,
27775fd0b74Schristos   Tag_CPU_arch = 6,
27875fd0b74Schristos   Tag_CPU_arch_profile = 7,
27975fd0b74Schristos   Tag_ARM_ISA_use = 8,
28075fd0b74Schristos   Tag_THUMB_ISA_use = 9,
28175fd0b74Schristos   Tag_FP_arch = 10,
28275fd0b74Schristos   Tag_WMMX_arch = 11,
28375fd0b74Schristos   Tag_Advanced_SIMD_arch = 12,
28475fd0b74Schristos   Tag_PCS_config = 13,
28575fd0b74Schristos   Tag_ABI_PCS_R9_use = 14,
28675fd0b74Schristos   Tag_ABI_PCS_RW_data = 15,
28775fd0b74Schristos   Tag_ABI_PCS_RO_data = 16,
28875fd0b74Schristos   Tag_ABI_PCS_GOT_use = 17,
28975fd0b74Schristos   Tag_ABI_PCS_wchar_t = 18,
29075fd0b74Schristos   Tag_ABI_FP_rounding = 19,
29175fd0b74Schristos   Tag_ABI_FP_denormal = 20,
29275fd0b74Schristos   Tag_ABI_FP_exceptions = 21,
29375fd0b74Schristos   Tag_ABI_FP_user_exceptions = 22,
29475fd0b74Schristos   Tag_ABI_FP_number_model = 23,
29575fd0b74Schristos   Tag_ABI_align_needed = 24,
29675fd0b74Schristos   Tag_ABI_align_preserved = 25,
29775fd0b74Schristos   Tag_ABI_enum_size = 26,
29875fd0b74Schristos   Tag_ABI_HardFP_use = 27,
29975fd0b74Schristos   Tag_ABI_VFP_args = 28,
30075fd0b74Schristos   Tag_ABI_WMMX_args = 29,
30175fd0b74Schristos   Tag_ABI_optimization_goals = 30,
30275fd0b74Schristos   Tag_ABI_FP_optimization_goals = 31,
30375fd0b74Schristos   // 32 is generic (Tag_compatibility).
30475fd0b74Schristos   Tag_undefined33 = 33,
30575fd0b74Schristos   Tag_CPU_unaligned_access = 34,
30675fd0b74Schristos   Tag_undefined35 = 35,
30775fd0b74Schristos   Tag_FP_HP_extension = 36,
30875fd0b74Schristos   Tag_undefined37 = 37,
30975fd0b74Schristos   Tag_ABI_FP_16bit_format = 38,
31075fd0b74Schristos   Tag_undefined39 = 39,
31175fd0b74Schristos   Tag_undefined40 = 40,
31275fd0b74Schristos   Tag_undefined41 = 41,
31375fd0b74Schristos   Tag_MPextension_use = 42,
31475fd0b74Schristos   Tag_undefined43 = 43,
31575fd0b74Schristos   Tag_DIV_use = 44,
316012573ebSchristos   Tag_MVE_arch = 48,
317*e992f068Schristos   Tag_PAC_extension = 50,
318*e992f068Schristos   Tag_BTI_extension = 52,
319*e992f068Schristos   Tag_BTI_use = 74,
320*e992f068Schristos   Tag_PACRET_use = 76,
32175fd0b74Schristos   Tag_nodefaults = 64,
32275fd0b74Schristos   Tag_also_compatible_with = 65,
32375fd0b74Schristos   Tag_T2EE_use = 66,
32475fd0b74Schristos   Tag_conformance = 67,
32575fd0b74Schristos   Tag_Virtualization_use = 68,
32675fd0b74Schristos   Tag_undefined69 = 69,
32775fd0b74Schristos   Tag_MPextension_use_legacy = 70,
32875fd0b74Schristos 
32975fd0b74Schristos   // The following tags are legacy names for other tags.
33075fd0b74Schristos   Tag_VFP_arch = Tag_FP_arch,
33175fd0b74Schristos   Tag_ABI_align8_needed = Tag_ABI_align_needed,
33275fd0b74Schristos   Tag_ABI_align8_preserved = Tag_ABI_align_preserved,
33375fd0b74Schristos   Tag_VFP_HP_extension = Tag_FP_HP_extension
33475fd0b74Schristos };
33575fd0b74Schristos 
33675fd0b74Schristos // Values for Tag_ABI_PCS_R9_use.
33775fd0b74Schristos enum
33875fd0b74Schristos {
33975fd0b74Schristos   AEABI_R9_V6 = 0,
34075fd0b74Schristos   AEABI_R9_SB = 1,
34175fd0b74Schristos   AEABI_R9_TLS = 2,
34275fd0b74Schristos   AEABI_R9_unused = 3
34375fd0b74Schristos };
34475fd0b74Schristos 
34575fd0b74Schristos // Values for Tag_ABI_PCS_RW_data.
34675fd0b74Schristos enum
34775fd0b74Schristos {
34875fd0b74Schristos   AEABI_PCS_RW_data_absolute = 0,
34975fd0b74Schristos   AEABI_PCS_RW_data_PCrel = 1,
35075fd0b74Schristos   AEABI_PCS_RW_data_SBrel = 2,
35175fd0b74Schristos   AEABI_PCS_RW_data_unused = 3
35275fd0b74Schristos };
35375fd0b74Schristos 
35475fd0b74Schristos // Values for Tag_ABI_enum_size.
35575fd0b74Schristos enum
35675fd0b74Schristos {
35775fd0b74Schristos   AEABI_enum_unused = 0,
35875fd0b74Schristos   AEABI_enum_short = 1,
35975fd0b74Schristos   AEABI_enum_wide = 2,
36075fd0b74Schristos   AEABI_enum_forced_wide = 3
36175fd0b74Schristos };
36275fd0b74Schristos 
36375fd0b74Schristos // Values for Tag_ABI_FP_number_model.
36475fd0b74Schristos enum
36575fd0b74Schristos {
36675fd0b74Schristos   AEABI_FP_number_model_none = 0,
36775fd0b74Schristos   AEABI_FP_number_model_ieee754_number = 1,
36875fd0b74Schristos   AEABI_FP_number_model_rtabi = 2,
36975fd0b74Schristos   AEABI_FP_number_model_ieee754_all = 3
37075fd0b74Schristos };
37175fd0b74Schristos 
37275fd0b74Schristos // Values for Tag_ABI_VFP_args.
37375fd0b74Schristos enum
37475fd0b74Schristos {
37575fd0b74Schristos   AEABI_VFP_args_base = 0,
37675fd0b74Schristos   AEABI_VFP_args_vfp = 1,
37775fd0b74Schristos   AEABI_VFP_args_toolchain = 2,
37875fd0b74Schristos   AEABI_VFP_args_compatible = 3
37975fd0b74Schristos };
38075fd0b74Schristos 
38175fd0b74Schristos // For Exception Index Table. (Exception handling ABI for the ARM
38275fd0b74Schristos // architectue, Section 5)
38375fd0b74Schristos enum
38475fd0b74Schristos {
38575fd0b74Schristos   EXIDX_CANTUNWIND = 1,
38675fd0b74Schristos };
38775fd0b74Schristos 
38875fd0b74Schristos } // End namespace elfcpp.
38975fd0b74Schristos 
39075fd0b74Schristos #endif // !defined(ELFCPP_ARM_H)
391