Use RELA relocations properly for R_DATA_PTR on x86_64.
commit738606dbd5608cb2ed6789beecea40712809c397
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>
Sat, 21 Feb 2015 21:29:03 +0000 (21 21:29 +0000)
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>
Sat, 21 Feb 2015 21:29:03 +0000 (21 21:29 +0000)
tree5905c3fa381607f962f2cc75d68c280ab5d03eba
parent86c850fc58a70ff4b77c37d91e33ce6c812b04c4
Use RELA relocations properly for R_DATA_PTR on x86_64.

libtcc.c: Add greloca, a generalisation of greloc that takes an addend.
tcc.h: Add greloca and put_elf_reloca.
tccelf.c: Add put_elf_reloca, a generalisation of put_elf_reloc.
tccgen.c: On x86_64, use greloca instead of greloc in init_putv.
libtcc.c
tcc.h
tccelf.c
tccgen.c