1 /* $NetBSD: elf_machdep.h,v 1.1 2001/01/11 22:28:07 bjh21 Exp $ */ 2 3 #define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB 4 5 /* Processor specific flags for the ELF header e_flags field. */ 6 #define EF_ARM_RELEXEC 0x00000001 7 #define EF_ARM_HASENTRY 0x00000002 8 #define EF_ARM_INTERWORK 0x00000004 /* GNU binutils 000413 */ 9 #define EF_ARM_SYMSARESORTED 0x00000004 /* ARM ELF A08 */ 10 #define EF_ARM_APCS_26 0x00000008 11 #define EF_ARM_APCS_FLOAT 0x00000010 12 #define EF_ARM_PIC 0x00000020 13 #define EF_ARM_ALIGN8 0x00000040 /* 8-bit structure alignment. */ 14 #define EF_ARM_NEW_ABI 0x00000080 15 #define EF_ARM_OLD_ABI 0x00000100 16 #define EF_ARM_SOFT_FLOAT 0x00000200 17 #define EF_ARM_EABIMASK 0xff000000 18 19 #define ELF32_MACHDEP_ID_CASES \ 20 case EM_ARM: \ 21 break; 22 23 #define ARCH_ELFSIZE 32 /* MD native binary size */ 24 25 #define R_ARM_NONE 0 26 #define R_ARM_PC24 1 27 #define R_ARM_ABS32 2 28 #define R_ARM_REL32 3 29 #define R_ARM_PC13 4 30 #define R_ARM_ABS16 5 31 #define R_ARM_ABS12 6 32 #define R_ARM_THM_ABS5 7 33 #define R_ARM_ABS8 8 34 #define R_ARM_SBREL32 9 35 #define R_ARM_THM_PC22 10 36 #define R_ARM_THM_PC8 11 37 #define R_ARM_AMP_VCALL9 12 38 #define R_ARM_SWI24 13 39 #define R_ARM_THM_SWI8 14 40 #define R_ARM_XPC25 15 41 #define R_ARM_THM_XPC22 16 42 43 #define R_TYPE(name) __CONCAT(R_ARM_,name) 44 45