From 9750d0b725d65296364c08451a985c717bf1890d Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 6 Apr 2014 00:30:22 +0200 Subject: x86_64: Create proper PLT and GOT also for -run This makes us use the normal PLT/GOT codepaths also for -run, which formerly used an on-the-side blob for the jump tables. For x86_64 only for now, arm coming up. --- tcc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 093e758..76f25bd 100644 --- a/tcc.h +++ b/tcc.h @@ -712,7 +712,7 @@ struct TCCState { void *write_mem; unsigned long mem_size; # endif -# if !defined TCC_TARGET_PE && (defined TCC_TARGET_X86_64 || defined TCC_TARGET_ARM) +# if !defined TCC_TARGET_PE && (defined TCC_TARGET_ARM) /* write PLT and GOT here */ char *runtime_plt_and_got; unsigned runtime_plt_and_got_offset; @@ -1265,6 +1265,7 @@ ST_FUNC void put_stabd(int type, int other, int desc); ST_FUNC void relocate_common_syms(void); ST_FUNC void relocate_syms(TCCState *s1, int do_resolve); ST_FUNC void relocate_section(TCCState *s1, Section *s); +ST_FUNC void relocate_plt(TCCState *s1); ST_FUNC void tcc_add_linker_symbols(TCCState *s1); ST_FUNC int tcc_load_object_file(TCCState *s1, int fd, unsigned long file_offset); -- cgit v1.3.1