x86-64: Add basic shared lib support

Initial support for shared libraries on x86-64.
This commit is contained in:
Michael Matz
2014-03-31 03:45:35 +02:00
parent 5a5fee867a
commit 080ad7e62a
2 changed files with 41 additions and 37 deletions

View File

@ -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,