mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-24 10:49:20 +01:00
We don't need to make sure the main function is in a certain memory region
This commit is contained in:
parent
f15db1d867
commit
c031887028
@ -6,8 +6,6 @@ SECTIONS {
|
||||
. = 0x00808000;
|
||||
.text : {
|
||||
*(.kernel_code*);
|
||||
*(.start_code*);
|
||||
start_code_end = .;
|
||||
/* everything below this code may get overwritten at runtime */
|
||||
*(.text*);
|
||||
/* Tell linker to not garbage collect this section as it is not referenced anywhere */
|
||||
@ -27,4 +25,3 @@ SECTIONS {
|
||||
}
|
||||
|
||||
ASSERT((SIZEOF(.text) + SIZEOF(.data)) < (0x00900000 - 0x00808000), "elf is too big");
|
||||
ASSERT(start_code_end <= 0x00809000, "start_code section is too big");
|
@ -64,7 +64,6 @@ bool CheckRunning() {
|
||||
extern "C" void init_wut();
|
||||
extern "C" void fini_wut();
|
||||
|
||||
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