From 337dc84b57e9a901d62c81bfc946b3d073c66af6 Mon Sep 17 00:00:00 2001 From: Kurt Nalty Date: Wed, 9 Jan 2019 16:53:50 +0000 Subject: [PATCH] Fixed -static linking on x86_64 Linux --- x86_64-gen.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x86_64-gen.c b/x86_64-gen.c index 50252d35..e3969665 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -625,11 +625,7 @@ static void gcall_or_jmp(int is_jmp) if ((vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST && ((vtop->r & VT_SYM) && (vtop->c.i-4) == (int)(vtop->c.i-4))) { /* constant symbolic case -> simple relocation */ -#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)); -#endif oad(0xe8 + is_jmp, 0); /* call/jmp im */ } else { /* otherwise, indirect call */ -- 2.11.4.GIT