aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;