(WiiU) use the already defined __init and __fini symbols.

This commit is contained in:
aliaspider 2016-11-16 17:43:04 +01:00
parent a973bd8dfa
commit 4089f9ec63
2 changed files with 6 additions and 8 deletions

View File

@ -316,17 +316,17 @@ void __eabi()
}
void _init();
void _fini();
void __init();
void __fini();
int __entry_menu(int argc, char **argv)
{
InitFunctionPointers();
memoryInitialize();
mount_sd_fat("sd");
_init();
__init();
int ret = main(argc, argv);
_fini();
__fini();
unmount_sd_fat("sd");
memoryRelease();
@ -339,9 +339,9 @@ void _start(int argc, char **argv)
memoryInitialize();
mount_sd_fat("sd");
// _init();
// __init();
int ret = main(argc, argv);
// _fini();
// __fini();
unmount_sd_fat("sd");
memoryRelease();

View File

@ -27,7 +27,6 @@ SECTIONS
/* Program */
.init :
{
_init = .;
KEEP (*crt0.o(*.init))
KEEP (*(.init))
} :text = 0
@ -86,7 +85,6 @@ SECTIONS
.fini :
{
_fini = .;
KEEP (*(.fini))
. = ALIGN(32); /* REQUIRED. LD is flaky without it. */
} = 0