From d2cf970a414ead8d90155c3569d9ab197cc099eb Mon Sep 17 00:00:00 2001 From: grischka Date: Tue, 13 Apr 2010 18:30:01 +0200 Subject: [PATCH] tccelf: fix warning --- tccelf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tccelf.c b/tccelf.c index 29b9c8c..4f16ecf 100644 --- a/tccelf.c +++ b/tccelf.c @@ -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); }