History

Fix R_ARM_REL32 relocation

Add missing break in the code handling R_ARM_REL32 relocation.

Thomas Preud'homme committed 14 years ago

Commit ed9c6b11 parent d27a0b31 file · +1 −0Browse files

Unified · Split

tccelf.c+1−0
@@ -636,6 +636,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) · 635 unmodified lines
636 break;636 break;
637 case R_ARM_REL32:637 case R_ARM_REL32:
638 *(int *)ptr += val - addr;638 *(int *)ptr += val - addr;
639 break;
639 case R_ARM_BASE_PREL:640 case R_ARM_BASE_PREL:
640 *(int *)ptr += s1->got->sh_addr - addr;641 *(int *)ptr += s1->got->sh_addr - addr;
641 break;642 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t