bootstrappable: crt1.o, libtcc1, crtn.o.

This commit is contained in:
Jan Nieuwenhuizen 2018-05-04 20:19:42 +02:00
parent 770b3a05b0
commit dd1521f341
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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
}
}