mirror of
https://github.com/wiiu-env/PayloadLoaderPayload.git
synced 2024-11-16 23:09:19 +01:00
26 lines
429 B
Plaintext
26 lines
429 B
Plaintext
OUTPUT(payload.elf);
|
|
|
|
ENTRY(_start);
|
|
|
|
SECTIONS {
|
|
. = 0x00FD0000;
|
|
.text : {
|
|
*(.kernel_code*);
|
|
*(.text*);
|
|
/* Tell linker to not garbage collect this section as it is not referenced anywhere */
|
|
KEEP(*(.kernel_code*));
|
|
}
|
|
.data : {
|
|
*(.rodata*);
|
|
*(.data*);
|
|
*(.sdata*);
|
|
*(.bss*);
|
|
*(.sbss*);
|
|
}
|
|
__CODE_END = .;
|
|
/DISCARD/ : {
|
|
*(*);
|
|
}
|
|
}
|
|
|
|
ASSERT((SIZEOF(.text) + SIZEOF(.data)) < 0x2F000, "elf is too big"); |