xref: /netbsd-src/external/gpl3/binutils/dist/include/mach-o/arm.h (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
19573673dSchristos /* Mach-O arm declarations for BFD.
2*cb63e24eSchristos    Copyright (C) 2012-2024 Free Software Foundation, Inc.
39573673dSchristos 
49573673dSchristos    This file is part of BFD, the Binary File Descriptor library.
59573673dSchristos 
69573673dSchristos    This program is free software; you can redistribute it and/or modify
79573673dSchristos    it under the terms of the GNU General Public License as published by
89573673dSchristos    the Free Software Foundation; either version 3 of the License, or
99573673dSchristos    (at your option) any later version.
109573673dSchristos 
119573673dSchristos    This program is distributed in the hope that it will be useful,
129573673dSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
139573673dSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
149573673dSchristos    GNU General Public License for more details.
159573673dSchristos 
169573673dSchristos    You should have received a copy of the GNU General Public License
179573673dSchristos    along with this program; if not, write to the Free Software
189573673dSchristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
199573673dSchristos    MA 02110-1301, USA.  */
209573673dSchristos 
219573673dSchristos #ifndef _MACH_O_ARM_H
229573673dSchristos #define _MACH_O_ARM_H
239573673dSchristos 
249573673dSchristos /* ARM relocations.  */
259573673dSchristos #define BFD_MACH_O_ARM_RELOC_VANILLA   0 /* Generic relocation.  */
269573673dSchristos #define BFD_MACH_O_ARM_RELOC_PAIR      1 /* Second entry in a pair.  */
27fc4f4269Schristos #define BFD_MACH_O_ARM_RELOC_SECTDIFF  2 /* Subtract with a PAIR.  */
289573673dSchristos #define BFD_MACH_O_ARM_RELOC_LOCAL_SECTDIFF 3 /* Like above, but local ref.  */
299573673dSchristos #define BFD_MACH_O_ARM_RELOC_PB_LA_PTR 4 /* Prebound lazy pointer.  */
309573673dSchristos #define BFD_MACH_O_ARM_RELOC_BR24      5 /* 24bit branch.  */
319573673dSchristos #define BFD_MACH_O_THUMB_RELOC_BR22    6 /* 22bit branch.  */
329573673dSchristos #define BFD_MACH_O_THUMB_32BIT_BRANCH  7 /* Obselete.  */
339573673dSchristos #define BFD_MACH_O_ARM_RELOC_HALF      8
349573673dSchristos #define BFD_MACH_O_ARM_RELOC_HALF_SECTDIFF 9
359573673dSchristos 
369573673dSchristos #endif /* _MACH_O_ARM_H */
37