From 361ec4f98e129b9a5b76da0600b9d9abef9eb0c3 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 10 Feb 2014 21:34:04 +0800 Subject: [PATCH] Call fill_got_entry unconditionally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Call fill_got_entry unconditionally from fill_got so as to avoid warnings on !x86-64 architectures. This can be done since this code path is only followed by x86-64 architecture anyway. --- tccelf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tccelf.c b/tccelf.c index bae8972d..321ec2ee 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1541,13 +1541,11 @@ ST_FUNC void fill_got(TCCState *s1) continue; for_each_elem(s, 0, rel, ElfW_Rel) { switch (ELFW(R_TYPE) (rel->r_info)) { -#ifdef TCC_TARGET_X86_64 case R_X86_64_GOT32: case R_X86_64_GOTPCREL: case R_X86_64_PLT32: fill_got_entry(s1, rel); break; -#endif } } }