aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-06-05 17:02:41 +0200
committerThomas Preud'homme <robotux@celest.fr>2012-06-05 23:09:55 +0200
commit9a81dcab0ab1c992efa4a6d74eeb86812758de20 (patch)
tree48cdacf02a238955885b709119df5be7eb2b27cc
parent7f6095bfec82b178084b22b33941d4f06155e514 (diff)
downloadtinycc-9a81dcab0ab1c992efa4a6d74eeb86812758de20.tar.gz
tinycc-9a81dcab0ab1c992efa4a6d74eeb86812758de20.tar.bz2
tccelf.c: Add R_ARM_REL32 relocation
-rw-r--r--tccelf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccelf.c b/tccelf.c
index 90e4815..655860b 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -634,6 +634,8 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s)
case R_ARM_ABS32:
*(int *)ptr += val;
break;
+ case R_ARM_REL32:
+ *(int *)ptr += val - addr;
case R_ARM_BASE_PREL:
*(int *)ptr += s1->got->sh_addr - addr;
break;