wiiu-nanddumper-payload/src/link.ld

25 lines
410 B
Plaintext

OUTPUT(payload.elf);
ENTRY(_start);
SECTIONS {
. = 0x00840000;
.text : {
*(.kernel_code*);
*(.text*);
/* Tell linker to not garbage collect this section as it is not referenced anywhere */
KEEP(*(.kernel_code*));
}
.data : {
*(.rodata*);
*(.sdata*);
*(.data*);
*(.bss*);
*(.sbss*);
}
/DISCARD/ : {
*(*);
}
}
ASSERT((SIZEOF(.text) + SIZEOF(.data)) < 0x7C0000, "elf is too big");