xref: /netbsd-src/external/gpl3/gdb/dist/include/mach-o/arm.h (revision e663ba6e3a60083e70de702e9d54bf486a57b6a7)
1a2e2270fSchristos /* Mach-O arm declarations for BFD.
2*e663ba6eSchristos    Copyright (C) 2012-2024 Free Software Foundation, Inc.
3a2e2270fSchristos 
4a2e2270fSchristos    This file is part of BFD, the Binary File Descriptor library.
5a2e2270fSchristos 
6a2e2270fSchristos    This program is free software; you can redistribute it and/or modify
7a2e2270fSchristos    it under the terms of the GNU General Public License as published by
8a2e2270fSchristos    the Free Software Foundation; either version 3 of the License, or
9a2e2270fSchristos    (at your option) any later version.
10a2e2270fSchristos 
11a2e2270fSchristos    This program is distributed in the hope that it will be useful,
12a2e2270fSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
13a2e2270fSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14a2e2270fSchristos    GNU General Public License for more details.
15a2e2270fSchristos 
16a2e2270fSchristos    You should have received a copy of the GNU General Public License
17a2e2270fSchristos    along with this program; if not, write to the Free Software
18a2e2270fSchristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19a2e2270fSchristos    MA 02110-1301, USA.  */
20a2e2270fSchristos 
21a2e2270fSchristos #ifndef _MACH_O_ARM_H
22a2e2270fSchristos #define _MACH_O_ARM_H
23a2e2270fSchristos 
24a2e2270fSchristos /* ARM relocations.  */
25a2e2270fSchristos #define BFD_MACH_O_ARM_RELOC_VANILLA   0 /* Generic relocation.  */
26a2e2270fSchristos #define BFD_MACH_O_ARM_RELOC_PAIR      1 /* Second entry in a pair.  */
274559860eSchristos #define BFD_MACH_O_ARM_RELOC_SECTDIFF  2 /* Subtract with a PAIR.  */
28a2e2270fSchristos #define BFD_MACH_O_ARM_RELOC_LOCAL_SECTDIFF 3 /* Like above, but local ref.  */
29a2e2270fSchristos #define BFD_MACH_O_ARM_RELOC_PB_LA_PTR 4 /* Prebound lazy pointer.  */
30a2e2270fSchristos #define BFD_MACH_O_ARM_RELOC_BR24      5 /* 24bit branch.  */
31a2e2270fSchristos #define BFD_MACH_O_THUMB_RELOC_BR22    6 /* 22bit branch.  */
32a2e2270fSchristos #define BFD_MACH_O_THUMB_32BIT_BRANCH  7 /* Obselete.  */
33a2e2270fSchristos #define BFD_MACH_O_ARM_RELOC_HALF      8
34a2e2270fSchristos #define BFD_MACH_O_ARM_RELOC_HALF_SECTDIFF 9
35a2e2270fSchristos 
36a2e2270fSchristos #endif /* _MACH_O_ARM_H */
37