Fix R_ARM_REL32 relocation
Add missing break in the code handling R_ARM_REL32 relocation.
This commit is contained in:
parent
d27a0b3548
commit
ed9c6b132a
1 changed files with 1 additions and 0 deletions
1
tccelf.c
1
tccelf.c
|
@ -636,6 +636,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s)
|
|||
break;
|
||||
case R_ARM_REL32:
|
||||
*(int *)ptr += val - addr;
|
||||
break;
|
||||
case R_ARM_BASE_PREL:
|
||||
*(int *)ptr += s1->got->sh_addr - addr;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue