From 080ad7e62acdf6ccd47927a4c289ff2ae21e83df Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 31 Mar 2014 03:45:35 +0200 Subject: x86-64: Add basic shared lib support Initial support for shared libraries on x86-64. --- x86_64-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'x86_64-gen.c') diff --git a/x86_64-gen.c b/x86_64-gen.c index fc4178e..9a9221d 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -604,7 +604,7 @@ static void gcall_or_jmp(int is_jmp) if (vtop->r & VT_SYM) { /* relocation case */ greloc(cur_text_section, vtop->sym, - ind + 1, R_X86_64_PC32); + ind + 1, R_X86_64_PLT32); } else { /* put an empty PC32 relocation */ put_elf_reloc(symtab_section, cur_text_section, -- cgit v1.3.1