We don't need to make sure the main function is in a certain memory region

This commit is contained in:
Maschell 2024-04-20 09:00:34 +02:00
parent f15db1d867
commit c031887028
2 changed files with 0 additions and 4 deletions

View File

@ -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");

View File

@ -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();