tccelf.c: Add R_ARM_REL32 relocation
This commit is contained in:
parent
7f6095bfec
commit
9a81dcab0a
1 changed files with 2 additions and 0 deletions
2
tccelf.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue