tccelf.c: Add R_ARM_REL32 relocation

This commit is contained in:
Thomas Preud'homme 2012-06-05 17:02:41 +02:00
parent 7f6095bfec
commit 9a81dcab0a

View File

@ -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;