diff options
| author | grischka <grischka> | 2010-04-13 18:30:01 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2010-04-13 18:30:01 +0200 |
| commit | d2cf970a414ead8d90155c3569d9ab197cc099eb (patch) | |
| tree | b3d634fdb61da321f565ea152cc7d67ce4b1cd35 /tccelf.c | |
| parent | e6f43dd0c669f8d2b8c22296a2c6bf866d9bac54 (diff) | |
| download | tinycc-d2cf970a414ead8d90155c3569d9ab197cc099eb.tar.gz tinycc-d2cf970a414ead8d90155c3569d9ab197cc099eb.tar.bz2 | |
tccelf: fix warning
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1375,8 +1375,10 @@ ST_FUNC void fill_got_entry(TCCState *s1, ElfW_Rel *rel) return; offset = s1->got_offsets[sym_index]; section_reserve(s1->got, offset + PTR_SIZE); +#ifdef TCC_TARGET_X86_64 /* only works for x86-64 */ put32(s1->got->data + offset, sym->st_value >> 32); +#endif put32(s1->got->data + offset, sym->st_value & 0xffffffff); } |
