xref: /netbsd-src/external/gpl3/gdb/dist/include/mach-o/arm64.h (revision e663ba6e3a60083e70de702e9d54bf486a57b6a7)
1ba340e45Schristos /* Mach-O arm declarations for BFD.
2*e663ba6eSchristos    Copyright (C) 2015-2024 Free Software Foundation, Inc.
3ba340e45Schristos 
4ba340e45Schristos    This file is part of BFD, the Binary File Descriptor library.
5ba340e45Schristos 
6ba340e45Schristos    This program is free software; you can redistribute it and/or modify
7ba340e45Schristos    it under the terms of the GNU General Public License as published by
8ba340e45Schristos    the Free Software Foundation; either version 3 of the License, or
9ba340e45Schristos    (at your option) any later version.
10ba340e45Schristos 
11ba340e45Schristos    This program is distributed in the hope that it will be useful,
12ba340e45Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
13ba340e45Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14ba340e45Schristos    GNU General Public License for more details.
15ba340e45Schristos 
16ba340e45Schristos    You should have received a copy of the GNU General Public License
17ba340e45Schristos    along with this program; if not, write to the Free Software
18ba340e45Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19ba340e45Schristos    MA 02110-1301, USA.  */
20ba340e45Schristos 
21ba340e45Schristos #ifndef _MACH_O_ARM64_H
22ba340e45Schristos #define _MACH_O_ARM64_H
23ba340e45Schristos 
24ba340e45Schristos /* ARM64 relocations.  */
25ba340e45Schristos 
26ba340e45Schristos /* Relocations for addresses in data.  */
27ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_UNSIGNED		0
28ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_SUBTRACTOR	1
29ba340e45Schristos 
30ba340e45Schristos /* Relocation for a call.  */
31ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_BRANCH26		2
32ba340e45Schristos 
33ba340e45Schristos /* Relocations for local data.  */
34ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_PAGE21		3
35ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_PAGEOFF12	4
36ba340e45Schristos 
37ba340e45Schristos /* Relocations for global data.  */
38ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_GOT_LOAD_PAGE21		5
39ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_GOT_LOAD_PAGEOFF12	6
40ba340e45Schristos 
41ba340e45Schristos /* Relocation for personality routine.  */
42ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_POINTER_TO_GOT		7
43ba340e45Schristos 
44ba340e45Schristos /* Relocations for thread local data.  */
45ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_TLVP_LOAD_PAGE21		8
46ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_TLVP_LOAD_PAGEOFF12	9
47ba340e45Schristos 
48ba340e45Schristos #define BFD_MACH_O_ARM64_RELOC_ADDEND			10
49ba340e45Schristos 
50ba340e45Schristos #endif /* _MACH_O_ARM64_H */
51