mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-14 22:45:07 +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;
|
. = 0x00808000;
|
||||||
.text : {
|
.text : {
|
||||||
*(.kernel_code*);
|
*(.kernel_code*);
|
||||||
*(.start_code*);
|
|
||||||
start_code_end = .;
|
|
||||||
/* everything below this code may get overwritten at runtime */
|
/* everything below this code may get overwritten at runtime */
|
||||||
*(.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 */
|
||||||
@ -27,4 +25,3 @@ SECTIONS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ASSERT((SIZEOF(.text) + SIZEOF(.data)) < (0x00900000 - 0x00808000), "elf is too big");
|
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 init_wut();
|
||||||
extern "C" void fini_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) {
|
extern "C" int _start(int argc, char **argv) {
|
||||||
doKernelSetup();
|
doKernelSetup();
|
||||||
InitFunctionPointers();
|
InitFunctionPointers();
|
||||||
|
Loading…
Reference in New Issue
Block a user