mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-22 01:49:16 +01:00
Add missing assert to link.ld to make sure important code doesn't get overwritten
This commit is contained in:
parent
fcac53670d
commit
103e950aef
@ -7,6 +7,8 @@ SECTIONS {
|
||||
.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 */
|
||||
KEEP(*(.kernel_code*));
|
||||
@ -25,3 +27,4 @@ SECTIONS {
|
||||
}
|
||||
|
||||
ASSERT((SIZEOF(.text) + SIZEOF(.data)) < (0x00900000 - 0x00808000), "elf is too big");
|
||||
ASSERT(start_code_end <= 0x00809000, "start_code section is too big");
|
Loading…
Reference in New Issue
Block a user