libtcc: filetype cleanup
- does not change signature of tcc_add_file
This commit is contained in:
7
tccelf.c
7
tccelf.c
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user