From fad68c9163a7c74888f1bd28e3955b78fcb4c6c1 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 7 Oct 2012 17:48:46 +0200 Subject: Add support for R_ARM_THM_{JUMP24,CALL} relocs Add support for relocations R_ARM_THM_JUMP24 and R_ARM_THM_CALL. These are encountered with gcc when compiling for armv6 or greater with -mthumb flag and a call (conditional or not) is done. --- elf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elf.h') diff --git a/elf.h b/elf.h index 2d15d31..a82d8f7 100644 --- a/elf.h +++ b/elf.h @@ -1673,7 +1673,7 @@ typedef Elf32_Addr Elf32_Conflict; #define R_ARM_THM_ABS5 7 #define R_ARM_ABS8 8 /* Direct 8 bit */ #define R_ARM_SBREL32 9 -#define R_ARM_THM_PC22 10 +#define R_ARM_THM_CALL 10 #define R_ARM_THM_PC8 11 #define R_ARM_AMP_VCALL9 12 #define R_ARM_SWI24 13 @@ -1690,6 +1690,7 @@ typedef Elf32_Addr Elf32_Conflict; #define R_ARM_PLT32 27 /* 32 bit PLT address */ #define R_ARM_CALL 28 #define R_ARM_JUMP24 29 +#define R_ARM_THM_JUMP24 30 #define R_ARM_V4BX 40 #define R_ARM_PREL31 42 #define R_ARM_MOVW_ABS_NC 43 -- cgit v1.3.1