History

Add default case to relocate function for x86_64

herman ten brugge committed 4 years ago

Commit e86aae41 parent c1725a81 file · +7 −0Browse files

Unified · Split

x86_64-link.c+7−0
@@ -249,6 +249,9 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t · 248 unmodified lines
249 }249 }
250 break;250 break;
251 251
252 case R_X86_64_COPY:
253 break;
254
252 case R_X86_64_PLTOFF64:255 case R_X86_64_PLTOFF64:
253 add64le(ptr, val - s1->got->sh_addr + rel->r_addend);256 add64le(ptr, val - s1->got->sh_addr + rel->r_addend);
254 break;257 break;
@@ -369,6 +372,10 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t · 114 unmodified lines
369#endif372#endif
370 /* do nothing */373 /* do nothing */
371 break;374 break;
375 default:
376 fprintf(stderr,"FIXME: handle reloc type %d at %x [%p] to %x\n",
377 type, (unsigned)addr, ptr, (unsigned)val);
378 break;
372 }379 }
373}380}
374 381

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