Basic linker script
This commit is contained in:
parent
0e259f27bd
commit
a63046569d
1 changed files with 16 additions and 0 deletions
16
link.ld
Normal file
16
link.ld
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
MEMORY {
|
||||||
|
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 1024
|
||||||
|
DRAM (rwx) : ORIGIN = 0x80000000, LENGTH = 1024
|
||||||
|
}
|
||||||
|
|
||||||
|
SECTIONS {
|
||||||
|
.text : {
|
||||||
|
*(.text)
|
||||||
|
} > SRAM
|
||||||
|
.data : {
|
||||||
|
*(.data)
|
||||||
|
} > DRAM AT > SRAM
|
||||||
|
.bss : {
|
||||||
|
*(.bss)
|
||||||
|
} > DRAM
|
||||||
|
}
|
Loading…
Reference in a new issue