diff options
| author | grischka <grischka> | 2016-10-01 20:46:16 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2016-10-01 20:46:16 +0200 |
| commit | acac35c12597eb678c4a0866f79a6aeb9171dd09 (patch) | |
| tree | 818fe5dd98e2ae339aac1167766d9e52bd0fd9bd /tccelf.c | |
| parent | 8637c1d0ad08d28052efc1de5c38b63acd2c08fc (diff) | |
| download | tinycc-acac35c12597eb678c4a0866f79a6aeb9171dd09.tar.gz tinycc-acac35c12597eb678c4a0866f79a6aeb9171dd09.tar.bz2 | |
libtcc: filetype cleanup
- does not change signature of tcc_add_file
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1573,8 +1573,7 @@ static int tcc_add_support(TCCState *s1, const char *filename) "C67" #endif ,filename); - - return tcc_add_file(s1, buf, TCC_FILETYPE_BINARY); + return tcc_add_file(s1, buf); } ST_FUNC void tcc_add_bcheck(TCCState *s1) @@ -1624,7 +1623,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1) tcc_add_library(s1, "c"); #ifdef CONFIG_USE_LIBGCC if (!s1->static_link) { - tcc_add_file(s1, TCC_LIBGCC, TCC_FILETYPE_BINARY); + tcc_add_file(s1, TCC_LIBGCC); } #endif tcc_add_support(s1, "libtcc1.a"); @@ -3385,7 +3384,7 @@ static int ld_add_file(TCCState *s1, const char filename[]) { int ret; - ret = tcc_add_file_internal(s1, filename, 0, TCC_FILETYPE_BINARY); + ret = tcc_add_file_internal(s1, filename, AFF_TYPE_BIN); if (ret) ret = tcc_add_dll(s1, filename, 0); return ret; |
