summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/x86_64-gen.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-18 14:15:09 -0500
committerpommicket <pommicket@gmail.com>2022-02-18 14:36:44 -0500
commit06def8fb862286658ef8cfc5cebb2711faadba1e (patch)
treece1486f57de6ce8f1d05d5a5ffc85b2a73977e35 /05/tcc-0.9.27/x86_64-gen.c
parent826d1afd58c2e064a9c8fdb09eda1b08469de1a8 (diff)
satrt readme
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 */