aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-10-08 02:44:17 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:49:53 +0100
commitddd461dcc866d17f1c89137dc275ce1da95e7be2 (patch)
tree1585ee439f895aeb049e8d3792748451ca768d86 /tcc.h
parentf081acbfba84ffdf1e479f932906bf10f88cd1c2 (diff)
downloadtinycc-ddd461dcc866d17f1c89137dc275ce1da95e7be2.tar.gz
tinycc-ddd461dcc866d17f1c89137dc275ce1da95e7be2.tar.bz2
Fix initializing members multiple times
When intializing members where the initializer needs relocations and the member is initialized multiple times we can't allow that to lead to multiple relocations to the same place. The last one must win.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index fb104fa..93544f0 100644
--- a/tcc.h
+++ b/tcc.h
@@ -1384,6 +1384,8 @@ ST_FUNC void tcc_add_runtime(TCCState *s1);
ST_FUNC void build_got_entries(TCCState *s1);
ST_FUNC struct sym_attr *get_sym_attr(TCCState *s1, int index, int alloc);
+ST_FUNC void squeeze_multi_relocs(Section *sec, size_t oldrelocoffset);
+
ST_FUNC addr_t get_elf_sym_addr(TCCState *s, const char *name, int err);
#if defined TCC_IS_NATIVE || defined TCC_TARGET_PE
ST_FUNC void *tcc_get_symbol_err(TCCState *s, const char *name);