xref: /netbsd-src/external/gpl3/binutils.old/dist/include/mach-o/arm.h (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos /* Mach-O arm declarations for BFD.
2*e992f068Schristos    Copyright (C) 2012-2022 Free Software Foundation, Inc.
375fd0b74Schristos 
475fd0b74Schristos    This file is part of BFD, the Binary File Descriptor library.
575fd0b74Schristos 
675fd0b74Schristos    This program is free software; you can redistribute it and/or modify
775fd0b74Schristos    it under the terms of the GNU General Public License as published by
875fd0b74Schristos    the Free Software Foundation; either version 3 of the License, or
975fd0b74Schristos    (at your option) any later version.
1075fd0b74Schristos 
1175fd0b74Schristos    This program is distributed in the hope that it will be useful,
1275fd0b74Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1375fd0b74Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1475fd0b74Schristos    GNU General Public License for more details.
1575fd0b74Schristos 
1675fd0b74Schristos    You should have received a copy of the GNU General Public License
1775fd0b74Schristos    along with this program; if not, write to the Free Software
1875fd0b74Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
1975fd0b74Schristos    MA 02110-1301, USA.  */
2075fd0b74Schristos 
2175fd0b74Schristos #ifndef _MACH_O_ARM_H
2275fd0b74Schristos #define _MACH_O_ARM_H
2375fd0b74Schristos 
2475fd0b74Schristos /* ARM relocations.  */
2575fd0b74Schristos #define BFD_MACH_O_ARM_RELOC_VANILLA   0 /* Generic relocation.  */
2675fd0b74Schristos #define BFD_MACH_O_ARM_RELOC_PAIR      1 /* Second entry in a pair.  */
27ede78133Schristos #define BFD_MACH_O_ARM_RELOC_SECTDIFF  2 /* Subtract with a PAIR.  */
2875fd0b74Schristos #define BFD_MACH_O_ARM_RELOC_LOCAL_SECTDIFF 3 /* Like above, but local ref.  */
2975fd0b74Schristos #define BFD_MACH_O_ARM_RELOC_PB_LA_PTR 4 /* Prebound lazy pointer.  */
3075fd0b74Schristos #define BFD_MACH_O_ARM_RELOC_BR24      5 /* 24bit branch.  */
3175fd0b74Schristos #define BFD_MACH_O_THUMB_RELOC_BR22    6 /* 22bit branch.  */
3275fd0b74Schristos #define BFD_MACH_O_THUMB_32BIT_BRANCH  7 /* Obselete.  */
3375fd0b74Schristos #define BFD_MACH_O_ARM_RELOC_HALF      8
3475fd0b74Schristos #define BFD_MACH_O_ARM_RELOC_HALF_SECTDIFF 9
3575fd0b74Schristos 
3675fd0b74Schristos #endif /* _MACH_O_ARM_H */
37