mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +03:00
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
2
tccelf.c
2
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user