mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-05-02 15:34:25 +02:00
Use linker to link vfprintf as tiny_vfprintf
This commit is contained in:
parent
fb926ae302
commit
823e31a91b
@ -73,6 +73,7 @@ LOCAL_LDFLAGS := -static
|
|||||||
|
|
||||||
ifdef B_CRT0
|
ifdef B_CRT0
|
||||||
LOCAL_STATIC_LIBRARIES += crt0
|
LOCAL_STATIC_LIBRARIES += crt0
|
||||||
|
LOCAL_LDFLAGS += -Wl,--defsym=vfprintf=tiny_vfprintf
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(BUILD_EXECUTABLE)
|
include $(BUILD_EXECUTABLE)
|
||||||
|
@ -468,12 +468,3 @@ const char *MagiskInit::backup_init() const noexcept {
|
|||||||
unxz_init("/.backup/init.xz", "/.backup/init");
|
unxz_init("/.backup/init.xz", "/.backup/init");
|
||||||
return "/.backup/init";
|
return "/.backup/init";
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_CRT0
|
|
||||||
__BEGIN_DECLS
|
|
||||||
int tiny_vfprintf(FILE *stream, const char *format, va_list arg);
|
|
||||||
int vfprintf(FILE *stream, const char *format, va_list arg) {
|
|
||||||
return tiny_vfprintf(stream, format, arg);
|
|
||||||
}
|
|
||||||
__END_DECLS
|
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user