bootstrappable: crt1.o, libtcc1, crtn.o.
This commit is contained in:
parent
770b3a05b0
commit
dd1521f341
2
libtcc.c
2
libtcc.c
|
@ -974,7 +974,9 @@ LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
|
|||
!s->nostdlib) {
|
||||
if (output_type != TCC_OUTPUT_DLL)
|
||||
tcc_add_crt(s, "crt1.o");
|
||||
#if !TCC_MES_LIBC
|
||||
tcc_add_crt(s, "crti.o");
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
|
|
4
tccelf.c
4
tccelf.c
|
@ -1148,10 +1148,14 @@ ST_FUNC void tcc_add_runtime(TCCState *s1)
|
|||
tcc_add_dll(s1, TCC_LIBGCC, 0);
|
||||
}
|
||||
#endif
|
||||
#if !BOOTSTRAP
|
||||
tcc_add_support(s1, TCC_LIBTCC1);
|
||||
#endif
|
||||
#if !TCC_MES_LIBC
|
||||
/* add crt end if not memory output */
|
||||
if (s1->output_type != TCC_OUTPUT_MEMORY)
|
||||
tcc_add_crt(s1, "crtn.o");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue