Unified · Split
| @@ -249,6 +249,9 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t · 248 unmodified lines | ||
| 249 | 249 | } |
| 250 | 250 | break; |
| 251 | 251 | |
| 252 | + case R_X86_64_COPY: | |
| 253 | + break; | |
| 254 | + | |
| 252 | 255 | case R_X86_64_PLTOFF64: |
| 253 | 256 | add64le(ptr, val - s1->got->sh_addr + rel->r_addend); |
| 254 | 257 | break; |
| @@ -369,6 +372,10 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t · 114 unmodified lines | ||
| 369 | 372 | #endif |
| 370 | 373 | /* do nothing */ |
| 371 | 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 | |