summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/x86_64-gen.c
diff options
context:
space:
mode:
Diffstat (limited to '05/tcc-0.9.27/x86_64-gen.c')
-rw-r--r--05/tcc-0.9.27/x86_64-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/05/tcc-0.9.27/x86_64-gen.c b/05/tcc-0.9.27/x86_64-gen.c
index 9060ae9..ad56ed6 100644
--- a/05/tcc-0.9.27/x86_64-gen.c
+++ b/05/tcc-0.9.27/x86_64-gen.c
@@ -599,7 +599,7 @@ static void gcall_or_jmp(int is_jmp)
#ifdef TCC_TARGET_PE
greloca(cur_text_section, vtop->sym, ind + 1, R_X86_64_PC32, (int)(vtop->c.i-4));
#else
- greloca(cur_text_section, vtop->sym, ind + 1, R_X86_64_PLT32, (int)(vtop->c.i-4));
+ greloca(cur_text_section, vtop->sym, ind + 1, R_X86_64_PC32, (int)(vtop->c.i-4)); // tcc's PLT code doesn't seem to work with static builds
#endif
} else {
/* put an empty PC32 relocation */