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
634 case R_ARM_ABS32:634 case R_ARM_ABS32:
635 *(int *)ptr += val;635 *(int *)ptr += val;
636 break;636 break;
637 case R_ARM_REL32:
638 *(int *)ptr += val - addr;
637 case R_ARM_BASE_PREL:639 case R_ARM_BASE_PREL:
638 *(int *)ptr += s1->got->sh_addr - addr;640 *(int *)ptr += s1->got->sh_addr - addr;
639 break;641 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