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
6060 case R_RISCV_RELAX:
6161 case R_RISCV_RVC_BRANCH:
6262 case R_RISCV_RVC_JUMP:
63+ case R_RISCV_JUMP_SLOT:
6364 return NO_GOTPLT_ENTRY;
6465
6566 case R_RISCV_BRANCH:
@@ -282,6 +283,7 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, · 216 unmodified lines
282283 case R_RISCV_32:
283284 write32le(ptr, val);
284285 return;
286+ case R_RISCV_JUMP_SLOT:
285287 case R_RISCV_64:
286288 write64le(ptr, val);
287289 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