History

riscv: Handle JUMP_SLOT reloc

so that -run works.

Michael Matz committed 7 years ago

Commit 55040841 parent ef7c1a41 file · +2 −0Browse files

Unified · Split

riscv64-link.c+2−0
@@ -60,6 +60,7 @@ int gotplt_entry_type (int reloc_type) · 59 unmodified lines
60 case R_RISCV_RELAX:60 case R_RISCV_RELAX:
61 case R_RISCV_RVC_BRANCH:61 case R_RISCV_RVC_BRANCH:
62 case R_RISCV_RVC_JUMP:62 case R_RISCV_RVC_JUMP:
63 case R_RISCV_JUMP_SLOT:
63 return NO_GOTPLT_ENTRY;64 return NO_GOTPLT_ENTRY;
64 65
65 case R_RISCV_BRANCH:66 case R_RISCV_BRANCH:
@@ -282,6 +283,7 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, · 216 unmodified lines
282 case R_RISCV_32:283 case R_RISCV_32:
283 write32le(ptr, val);284 write32le(ptr, val);
284 return;285 return;
286 case R_RISCV_JUMP_SLOT:
285 case R_RISCV_64:287 case R_RISCV_64:
286 write64le(ptr, val);288 write64le(ptr, val);
287 return;289 return;

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