elf-defs.h (1200B)
1 #ifndef ELF_DEFS_H 2 #define ELF_DEFS_H 3 4 # define R_ARM_NONE 0 5 # define R_ARM_ABS32 2 6 # define R_ARM_REL32 3 7 # define R_ARM_THM_CALL 10 8 # define R_ARM_CALL 28 9 # define R_ARM_JUMP24 29 10 # define R_ARM_THM_JUMP24 30 11 # define R_ARM_TARGET1 38 12 # define R_ARM_SBREL31 39 13 # define R_ARM_V4BX 40 14 # define R_ARM_TARGET2 41 15 # define R_ARM_PREL31 42 16 # define R_ARM_MOVW_ABS_NC 43 17 # define R_ARM_MOVT_ABS 44 18 # define R_ARM_MOVW_PREL_NC 45 19 # define R_ARM_MOVT_PREL 46 20 # define R_ARM_THM_MOVW_ABS_NC 47 21 # define R_ARM_THM_MOVT_ABS 48 22 # define R_ARM_THM_PC11 102 23 24 #define STB_NUM 3 25 #define SHT_ARM_EXIDX 0x70000001 26 27 /* Decode functions to turn an enum into a string */ 28 29 const char *elf_decode_e_type(int e_type); /* ELF file type */ 30 const char *elf_decode_sh_type(int sh_type); /* Section header type */ 31 const char *elf_decode_p_type(int p_type); /* Program segment type */ 32 const char *elf_decode_st_bind(int st_bind); /* Symbol binding */ 33 const char *elf_decode_st_type(int st_type); /* Symbol type */ 34 const char *elf_decode_r_type(int r_type); /* Relocation type */ 35 36 #endif