mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-10-31 21:35:07 +01:00
34 lines
544 B
Plaintext
34 lines
544 B
Plaintext
|
OUTPUT(loader.elf);
|
||
|
|
||
|
ENTRY(_start);
|
||
|
|
||
|
SECTIONS {
|
||
|
. = 0x00800000;
|
||
|
.text : {
|
||
|
*(.kernel_code*);
|
||
|
*(.text*);
|
||
|
/* Tell linker to not garbage collect this section as it is not referenced anywhere */
|
||
|
KEEP(*(.kernel_code*));
|
||
|
}
|
||
|
.sdata : {
|
||
|
*(.sdata*)
|
||
|
}
|
||
|
.data : {
|
||
|
*(.data*)
|
||
|
}
|
||
|
.rodata : {
|
||
|
*(.rodata*)
|
||
|
}
|
||
|
.sbss : {
|
||
|
*(.sbss*)
|
||
|
}
|
||
|
.bss : {
|
||
|
*(.bss*)
|
||
|
}
|
||
|
/DISCARD/ : {
|
||
|
*(*);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ASSERT((SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.sdata) + SIZEOF(.rodata) + SIZEOF(.sbss) + SIZEOF(.bss)) < 0x80000, "Memory overlapping with modules.");
|