WIP: Works.
But I don't like it much yet.
This commit is contained in:
@@ -1,23 +1,26 @@
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x00300000, LENGTH = 0x00100000 /* Runner */
|
||||
RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 16K
|
||||
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.magic_header : {
|
||||
.magic_header : ALIGN(4) {
|
||||
LONG(0x88DAD0F2) /* Magic header containing */
|
||||
LONG(ADDR(.text)) /* Entry point */
|
||||
} > RAM
|
||||
|
||||
.text : {
|
||||
.text : ALIGN(4) {
|
||||
*(.text)
|
||||
*(.rodata)
|
||||
} > RAM
|
||||
|
||||
.data : {
|
||||
.data : ALIGN(4) {
|
||||
*(.data)
|
||||
} > RAM
|
||||
|
||||
.bss : ALIGN(4) {
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
} > RAM
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user