mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +08:00
tccelf: fix warning
This commit is contained in:
parent
e6f43dd0c6
commit
d2cf970a41
2
tccelf.c
2
tccelf.c
@ -1375,8 +1375,10 @@ ST_FUNC void fill_got_entry(TCCState *s1, ElfW_Rel *rel)
|
|||||||
return;
|
return;
|
||||||
offset = s1->got_offsets[sym_index];
|
offset = s1->got_offsets[sym_index];
|
||||||
section_reserve(s1->got, offset + PTR_SIZE);
|
section_reserve(s1->got, offset + PTR_SIZE);
|
||||||
|
#ifdef TCC_TARGET_X86_64
|
||||||
/* only works for x86-64 */
|
/* only works for x86-64 */
|
||||||
put32(s1->got->data + offset, sym->st_value >> 32);
|
put32(s1->got->data + offset, sym->st_value >> 32);
|
||||||
|
#endif
|
||||||
put32(s1->got->data + offset, sym->st_value & 0xffffffff);
|
put32(s1->got->data + offset, sym->st_value & 0xffffffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user