Weaken more init/env functions
This commit is contained in:
parent
1389fcdfcd
commit
58c1baea21
@ -37,7 +37,7 @@ static int __name_cmp(const char* a, const char* b) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle envGetHandle(const char* name) {
|
Handle __attribute__((weak)) envGetHandle(const char* name) {
|
||||||
if(__service_ptr == NULL)
|
if(__service_ptr == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Handle envGetHandle(const char* name) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void envDestroyHandles(void) {
|
void __attribute__((weak)) envDestroyHandles(void) {
|
||||||
if(__service_ptr == NULL)
|
if(__service_ptr == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ char** __system_argv;
|
|||||||
extern char* fake_heap_start;
|
extern char* fake_heap_start;
|
||||||
extern char* fake_heap_end;
|
extern char* fake_heap_end;
|
||||||
|
|
||||||
void __system_initArgv(void)
|
void __attribute__((weak)) __system_initArgv(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char* arglist = envGetSystemArgList();
|
const char* arglist = envGetSystemArgList();
|
||||||
|
@ -35,7 +35,7 @@ static int __libctru_nanosleep(const struct timespec *req, struct timespec *rem)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void __system_initSyscalls(void)
|
void __attribute__((weak)) __system_initSyscalls(void)
|
||||||
{
|
{
|
||||||
// Register newlib syscalls
|
// Register newlib syscalls
|
||||||
__syscalls.exit = __ctru_exit;
|
__syscalls.exit = __ctru_exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user