mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-14 22:45:07 +01:00
Make sure _start is at the beginning of the .text section.
This commit is contained in:
parent
923b43072c
commit
00fe4bc284
@ -6,6 +6,7 @@ SECTIONS {
|
|||||||
. = 0x00808000;
|
. = 0x00808000;
|
||||||
.text : {
|
.text : {
|
||||||
*(.kernel_code*);
|
*(.kernel_code*);
|
||||||
|
*(.start_code*);
|
||||||
*(.text*);
|
*(.text*);
|
||||||
/* Tell linker to not garbage collect this section as it is not referenced anywhere */
|
/* Tell linker to not garbage collect this section as it is not referenced anywhere */
|
||||||
KEEP(*(.kernel_code*));
|
KEEP(*(.kernel_code*));
|
||||||
|
@ -76,6 +76,8 @@ bool module_log = false;
|
|||||||
bool udp_log = false;
|
bool udp_log = false;
|
||||||
bool cafe_log = false;
|
bool cafe_log = false;
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
|
||||||
|
extern "C" int _start(int argc, char **argv) __attribute__ ((section (".start_code")));
|
||||||
extern "C" int _start(int argc, char **argv) {
|
extern "C" int _start(int argc, char **argv) {
|
||||||
doKernelSetup();
|
doKernelSetup();
|
||||||
InitFunctionPointers();
|
InitFunctionPointers();
|
||||||
|
Loading…
Reference in New Issue
Block a user