Fix R_ARM_REL32 relocation

Add missing break in the code handling R_ARM_REL32 relocation.
master
Thomas Preud'homme 2012-06-12 17:57:31 +02:00
parent d27a0b3548
commit ed9c6b132a
1 changed files with 1 additions and 0 deletions

View File

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