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:
parent
c6017182f6
commit
361ec4f98e
1 changed files with 0 additions and 2 deletions
2
tccelf.c
2
tccelf.c
|
@ -1541,13 +1541,11 @@ ST_FUNC void fill_got(TCCState *s1)
|
||||||
continue;
|
continue;
|
||||||
for_each_elem(s, 0, rel, ElfW_Rel) {
|
for_each_elem(s, 0, rel, ElfW_Rel) {
|
||||||
switch (ELFW(R_TYPE) (rel->r_info)) {
|
switch (ELFW(R_TYPE) (rel->r_info)) {
|
||||||
#ifdef TCC_TARGET_X86_64
|
|
||||||
case R_X86_64_GOT32:
|
case R_X86_64_GOT32:
|
||||||
case R_X86_64_GOTPCREL:
|
case R_X86_64_GOTPCREL:
|
||||||
case R_X86_64_PLT32:
|
case R_X86_64_PLT32:
|
||||||
fill_got_entry(s1, rel);
|
fill_got_entry(s1, rel);
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue