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.
This commit is contained in:
Thomas Preud'homme 2014-02-10 21:34:04 +08:00
parent c6017182f6
commit 361ec4f98e

View File

@ -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
}
}
}