aboutsummaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-10-07 17:48:46 +0200
committerThomas Preud'homme <robotux@celest.fr>2012-10-28 19:55:12 +0100
commitfad68c9163a7c74888f1bd28e3955b78fcb4c6c1 (patch)
tree3a7e1175cad9a029e7d6dbc00e90413bd21f6445 /elf.h
parent508df168f42a58ac296b4fdce308b6d7eed16dc7 (diff)
downloadtinycc-fad68c9163a7c74888f1bd28e3955b78fcb4c6c1.tar.gz
tinycc-fad68c9163a7c74888f1bd28e3955b78fcb4c6c1.tar.bz2
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.
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h3
1 files changed, 2 insertions, 1 deletions
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