Build magiskboot with crt0

This commit is contained in:
topjohnwu
2024-02-29 02:36:05 -08:00
parent b1297c4192
commit 24e46a5971
8 changed files with 61 additions and 31 deletions

View File

@@ -6,6 +6,11 @@
using namespace std;
#ifdef USE_MUSL_PRINTF
// Switch to use the musl vfprintf
__asm__(".global vfprintf \n vfprintf = musl_vfprintf");
#endif
static void print_formats() {
for (int fmt = GZIP; fmt < LZOP; ++fmt) {
fprintf(stderr, "%s ", fmt2name[(format_t) fmt]);