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