diff options
| author | Michael Matz <matz@suse.de> | 2014-03-31 03:45:35 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2014-03-31 03:45:35 +0200 |
| commit | 080ad7e62acdf6ccd47927a4c289ff2ae21e83df (patch) | |
| tree | bbf20990e8e7f1af2431a7d3c623032062bf2b2e /x86_64-gen.c | |
| parent | 5a5fee867a2427b35bf6acec3e176e768cb5b7d2 (diff) | |
| download | tinycc-080ad7e62acdf6ccd47927a4c289ff2ae21e83df.tar.gz tinycc-080ad7e62acdf6ccd47927a4c289ff2ae21e83df.tar.bz2 | |
x86-64: Add basic shared lib support
Initial support for shared libraries on x86-64.
Diffstat (limited to 'x86_64-gen.c')
| -rw-r--r-- | x86_64-gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
