plt-reloc fix for macos
This commit is contained in:
parent
affd736f19
commit
aa7727964b
1 changed files with 4 additions and 1 deletions
5
tccelf.c
5
tccelf.c
|
@ -1001,9 +1001,12 @@ ST_FUNC void relocate_sections(TCCState *s1)
|
|||
if (sr->sh_type != SHT_RELX)
|
||||
continue;
|
||||
s = s1->sections[sr->sh_info];
|
||||
#ifndef TCC_TARGET_MACHO
|
||||
if (s != s1->got
|
||||
|| s1->static_link
|
||||
|| s1->output_type == TCC_OUTPUT_MEMORY) {
|
||||
|| s1->output_type == TCC_OUTPUT_MEMORY)
|
||||
#endif
|
||||
{
|
||||
relocate_section(s1, s, sr);
|
||||
}
|
||||
#ifndef ELF_OBJ_ONLY
|
||||
|
|
Loading…
Reference in a new issue