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;
|
2024-01-13 11:51:44 +01:00
|
|
|
|
|
|
|
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.*)
|
|
|
|
}
|
2024-01-13 11:51:44 +01:00
|
|
|
|
|
|
|
END = .;
|
|
|
|
|
|
|
|
.data ALIGN(16) : {
|
|
|
|
*(.rodata.*)
|
2021-09-10 16:32:09 +02:00
|
|
|
*(const)
|
|
|
|
*(CONST)
|
|
|
|
*(.data)
|
|
|
|
*(data)
|
|
|
|
}
|
2024-01-13 11:51:44 +01:00
|
|
|
|
2021-09-10 16:32:09 +02:00
|
|
|
.bss ALIGN(16) : {*(.bss)}
|
2024-01-13 11:51:44 +01:00
|
|
|
|
|
|
|
FILE_END = .;
|
2021-09-10 16:32:09 +02:00
|
|
|
}
|