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
249249 }
250250 break;
251251
252+ case R_X86_64_COPY:
253+ break;
254+
252255 case R_X86_64_PLTOFF64:
253256 add64le(ptr, val - s1->got->sh_addr + rel->r_addend);
254257 break;
@@ -369,6 +372,10 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t · 114 unmodified lines
369372 #endif
370373 /* do nothing */
371374 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;
372379 }
373380 }
374381

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