Unified · Split
| @@ -1375,8 +1375,10 @@ ST_FUNC void fill_got_entry(TCCState *s1, ElfW_Rel *rel) · 1374 unmodified lines | ||
| 1375 | 1375 | return; |
| 1376 | 1376 | offset = s1->got_offsets[sym_index]; |
| 1377 | 1377 | section_reserve(s1->got, offset + PTR_SIZE); |
| 1378 | +#ifdef TCC_TARGET_X86_64 | |
| 1378 | 1379 | /* only works for x86-64 */ |
| 1379 | 1380 | put32(s1->got->data + offset, sym->st_value >> 32); |
| 1381 | +#endif | |
| 1380 | 1382 | put32(s1->got->data + offset, sym->st_value & 0xffffffff); |
| 1381 | 1383 | } |
| 1382 | 1384 | |