History

tccelf.c: Add R_ARM_REL32 relocation

Thomas Preud'homme committed 14 years ago

Commit 9a81dca1 parent 7f6095b1 file · +2 −0Browse files

Unified · Split

tccelf.c+2−0
@@ -634,6 +634,8 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) · 633 unmodified lines
634634 case R_ARM_ABS32:
635635 *(int *)ptr += val;
636636 break;
637+ case R_ARM_REL32:
638+ *(int *)ptr += val - addr;
637639 case R_ARM_BASE_PREL:
638640 *(int *)ptr += s1->got->sh_addr - addr;
639641 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