1
0
forked from Rust/Core
Core/link.x

37 lines
869 B
Plaintext
Raw Normal View History

2021-09-10 16:32:09 +02:00
PATH_SIZE = 1024;
PARAMS_SIZE = 256;
2024-01-30 13:56:39 +01:00
STACK_SIZE = 1024*64;
SECTIONS {
hdr : {
LONG(0x554e454D);
LONG(0x31305445);
LONG(1); // Header version
LONG(kol_main); // Program start
LONG(END); // Image size
LONG(FILE_END + PATH_SIZE + PARAMS_SIZE + STACK_SIZE); // Required amount of memory
LONG(FILE_END + PATH_SIZE + PARAMS_SIZE + STACK_SIZE); // Stack
LONG(FILE_END + PATH_SIZE); // Boot params
LONG(FILE_END); // Application path
}
2021-09-10 16:32:09 +02:00
.text : {
*(.text)
*(.text.*)
}
END = .;
.data ALIGN(16) : {
*(.rodata.*)
2021-09-10 16:32:09 +02:00
*(const)
*(CONST)
*(.data)
*(data)
}
2021-09-10 16:32:09 +02:00
.bss ALIGN(16) : {*(.bss)}
FILE_END = .;
2021-09-10 16:32:09 +02:00
}