mirror of https://github.com/garritfra/ditto-os
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
682 B
22 lines
682 B
ENTRY(loader) /* the name of the entry label */ |
|
|
|
SECTIONS { |
|
. = 0x00100000; /* the code should be loaded at 1 MB */ |
|
|
|
.text ALIGN (0x1000) : /* align at 4 KB */ |
|
{ |
|
*(.text) /* all text sections from all files */ |
|
*(.rodata*) /* all read-only data sections from all files */ |
|
} |
|
|
|
.data ALIGN (0x1000) : /* align at 4 KB */ |
|
{ |
|
*(.data) /* all data sections from all files */ |
|
} |
|
|
|
.bss ALIGN (0x1000) : /* align at 4 KB */ |
|
{ |
|
*(COMMON) /* all COMMON sections from all files */ |
|
*(.bss) /* all bss sections from all files */ |
|
} |
|
} |