mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-13 22:15:06 +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;
|
||||
.text : {
|
||||
*(.kernel_code*);
|
||||
*(.start_code*);
|
||||
*(.text*);
|
||||
/* Tell linker to not garbage collect this section as it is not referenced anywhere */
|
||||
KEEP(*(.kernel_code*));
|
||||
|
@ -76,6 +76,8 @@ bool module_log = false;
|
||||
bool udp_log = false;
|
||||
bool cafe_log = false;
|
||||
#endif // DEBUG
|
||||
|
||||
extern "C" int _start(int argc, char **argv) __attribute__ ((section (".start_code")));
|
||||
extern "C" int _start(int argc, char **argv) {
|
||||
doKernelSetup();
|
||||
InitFunctionPointers();
|
||||
|
Loading…
Reference in New Issue
Block a user