mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 15:27:41 +00:00
(WiiU) use the already defined __init and __fini symbols.
This commit is contained in:
parent
a973bd8dfa
commit
4089f9ec63
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user