From 06def8fb862286658ef8cfc5cebb2711faadba1e Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 18 Feb 2022 14:15:09 -0500 Subject: satrt readme --- 05/tcc-0.9.27/x86_64-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '05/tcc-0.9.27/x86_64-gen.c') 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 */ -- cgit v1.2.3