diff options
| author | Michael Matz <matz@suse.de> | 2016-09-04 00:19:47 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:11 +0100 |
| commit | f2a071e808db2896823463089531e08d0b2d0ee8 (patch) | |
| tree | f5da272a4460b73d98561e1788fbda60f8adb09f /tccgen.c | |
| parent | 9656560f144380bcebade03a6c10b8c186ad3874 (diff) | |
| download | tinycc-f2a071e808db2896823463089531e08d0b2d0ee8.tar.gz tinycc-f2a071e808db2896823463089531e08d0b2d0ee8.tar.bz2 | |
Fix aliases on 64 bit
Use correct width ELF structure.
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6919,13 +6919,13 @@ static int decl0(int l, int is_for_loop_init) if (ad.alias_target) { Section tsec; - Elf32_Sym *esym; + ElfW(Sym) *esym; Sym *alias_target; alias_target = sym_find(ad.alias_target); if (!alias_target || !alias_target->c) tcc_error("unsupported forward __alias__ attribute"); - esym = &((Elf32_Sym *)symtab_section->data)[alias_target->c]; + esym = &((ElfW(Sym) *)symtab_section->data)[alias_target->c]; tsec.sh_num = esym->st_shndx; put_extern_sym2(sym, &tsec, esym->st_value, esym->st_size, 0); } |
