aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2014-02-10 21:34:04 +0800
committerThomas Preud'homme <robotux@celest.fr>2014-02-10 21:35:00 +0800
commit361ec4f98e129b9a5b76da0600b9d9abef9eb0c3 (patch)
treeb218048a380cec38c4ceff83051d86549596660d
parentc6017182f653fed44543ef81110cf3abbc34a08b (diff)
downloadtinycc-361ec4f98e129b9a5b76da0600b9d9abef9eb0c3.tar.gz
tinycc-361ec4f98e129b9a5b76da0600b9d9abef9eb0c3.tar.bz2
Call fill_got_entry unconditionally
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.
-rw-r--r--tccelf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tccelf.c b/tccelf.c
index bae8972..321ec2e 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
}
}
}