mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 20:45:24 +00:00
Update crt0
This commit is contained in:
parent
000a2e4d59
commit
21ed095601
@ -111,7 +111,6 @@ LOCAL_LDFLAGS := -static -T src/lto_fix.lds
|
||||
|
||||
ifdef B_CRT0
|
||||
LOCAL_STATIC_LIBRARIES += crt0
|
||||
LOCAL_CFLAGS += -DUSE_MUSL_PRINTF
|
||||
LOCAL_LDFLAGS := -lm
|
||||
endif
|
||||
|
||||
|
@ -6,9 +6,9 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
#ifdef USE_MUSL_PRINTF
|
||||
// Switch to use the musl vfprintf
|
||||
#ifdef USE_CRT0
|
||||
__asm__(".global vfprintf \n vfprintf = musl_vfprintf");
|
||||
__asm__(".global vsscanf \n vsscanf = tfp_vsscanf");
|
||||
#endif
|
||||
|
||||
static void print_formats() {
|
||||
|
2
native/src/external/crt0
vendored
2
native/src/external/crt0
vendored
@ -1 +1 @@
|
||||
Subproject commit 6ec46be760069d4645204b09b96e8dd414c3ac2e
|
||||
Subproject commit 2afb00eb00575864009cbc62bd7a27842633c6b6
|
@ -12,6 +12,10 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
#ifdef USE_CRT0
|
||||
__asm__(".global vfprintf \n vfprintf = tfp_vfprintf");
|
||||
#endif
|
||||
|
||||
bool unxz(out_stream &strm, rust::Slice<const uint8_t> bytes) {
|
||||
uint8_t out[8192];
|
||||
xz_crc32_init();
|
||||
|
Loading…
Reference in New Issue
Block a user