1ca39813bSguenther /* aarch64 ELF support for BFD. 2ca39813bSguenther * Copyright (c) 2017 Philip Guenther <guenther@openbsd.org> 3ca39813bSguenther * 4ca39813bSguenther * Permission to use, copy, modify, and distribute this software for any 5ca39813bSguenther * purpose with or without fee is hereby granted, provided that the above 6ca39813bSguenther * copyright notice and this permission notice appear in all copies. 7ca39813bSguenther * 8ca39813bSguenther * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9ca39813bSguenther * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10ca39813bSguenther * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11ca39813bSguenther * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12ca39813bSguenther * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13ca39813bSguenther * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14ca39813bSguenther * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15ca39813bSguenther */ 16ca39813bSguenther 17ca39813bSguenther #ifndef _ELF_AARCH64_H 18ca39813bSguenther #define _ELF_AARCH64_H 19ca39813bSguenther 20ca39813bSguenther #include "elf/reloc-macros.h" 21ca39813bSguenther 22ca39813bSguenther START_RELOC_NUMBERS (elf_aarch64_reloc_type ) 23*bfa51a8bSguenther RELOC_NUMBER (R_AARCH64_NONE, 0) /* No reloc */ 24ca39813bSguenther RELOC_NUMBER (R_AARCH64_ABS64, 257) /* Direct 64 bit */ 25ca39813bSguenther RELOC_NUMBER (R_AARCH64_COPY, 1024) /* Copy symbol at runtime */ 26ca39813bSguenther RELOC_NUMBER (R_AARCH64_GLOB_DAT, 1025) /* Create GOT entry */ 27ca39813bSguenther RELOC_NUMBER (R_AARCH64_JUMP_SLOT, 1026) /* Create PLT entry */ 28ca39813bSguenther RELOC_NUMBER (R_AARCH64_RELATIVE, 1027) /* Adjust by object base */ 29ca39813bSguenther RELOC_NUMBER (R_AARCH64_TLS_DTPREL64, 1028) /* Dynamic TLS offset */ 30ca39813bSguenther RELOC_NUMBER (R_AARCH64_TLS_DTPMOD64, 1029) /* Dynamic TLS module */ 31ca39813bSguenther RELOC_NUMBER (R_AARCH64_TLS_TPREL64, 1030) /* Thread pointer relative */ 32ca39813bSguenther RELOC_NUMBER (R_AARCH64_TLSDESC, 1031) /* TLS descriptor */ 33ca39813bSguenther RELOC_NUMBER (R_AARCH64_IRELATIVE, 1032) /* Indirect relative */ 34ca39813bSguenther END_RELOC_NUMBERS (R_AARCH64_max) 35ca39813bSguenther 36ca39813bSguenther #endif 37