diff options
| author | grischka <grischka> | 2013-02-04 16:08:06 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2013-02-04 16:24:59 +0100 |
| commit | 82bcbd027f100d7601c6139e93e1f69a9cc46244 (patch) | |
| tree | 39d361cc3ae5df94710082778852bf427d101d10 /tcccoff.c | |
| parent | 3186455599043938d765b4cc9b92af5fde7241cd (diff) | |
| download | tinycc-82bcbd027f100d7601c6139e93e1f69a9cc46244.tar.gz tinycc-82bcbd027f100d7601c6139e93e1f69a9cc46244.tar.bz2 | |
portability: fix void* <-> target address conversion confusion
- #define addr_t as ElfW(Addr)
- replace uplong by addr_t
- #define TCC_HAS_RUNTIME_PLTGOT and use it
Diffstat (limited to 'tcccoff.c')
| -rw-r--r-- | tcccoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -933,7 +933,7 @@ ST_FUNC int tcc_load_coff(TCCState * s1, int fd) if (name[0] == '_' && strcmp(name, "_main") != 0) name++; - tcc_add_symbol(s1, name, (void*)(uplong)csym.n_value); + tcc_add_symbol(s1, name, (void*)(uintptr_t)csym.n_value); } // skip any aux records |
