aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2014-04-06 00:30:22 +0200
committerMichael Matz <matz@suse.de>2014-04-06 00:30:22 +0200
commit9750d0b725d65296364c08451a985c717bf1890d (patch)
tree6ececf2241e2ef1236b2d364af23ee9ca1064c7d /tcc.h
parentc4427747e6e5890b65c70e8fad5b30309b2b0279 (diff)
downloadtinycc-9750d0b725d65296364c08451a985c717bf1890d.tar.gz
tinycc-9750d0b725d65296364c08451a985c717bf1890d.tar.bz2
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.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h3
1 files changed, 2 insertions, 1 deletions
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);