diff options
| author | Michael Matz <matz@suse.de> | 2016-10-08 02:44:17 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:49:53 +0100 |
| commit | ddd461dcc866d17f1c89137dc275ce1da95e7be2 (patch) | |
| tree | 1585ee439f895aeb049e8d3792748451ca768d86 /tcc.h | |
| parent | f081acbfba84ffdf1e479f932906bf10f88cd1c2 (diff) | |
| download | tinycc-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
