x86-64: Add basic shared lib support
Initial support for shared libraries on x86-64.
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user