projects
/
cortex-from-scratch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pretty print EEPROM
[cortex-from-scratch]
/
link.ld
diff --git
a/link.ld
b/link.ld
index
5791784
..
1f6b5f6
100644
(file)
--- a/
link.ld
+++ b/
link.ld
@@
-1,21
+1,29
@@
+/* */
MEMORY
{
MEMORY
{
- FLASH (xr) : ORIGIN = 0x0
0
000000, LENGTH = 512K
+ FLASH (xr) : ORIGIN = 0x0
8
000000, LENGTH = 512K
SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
-}
+}
ENTRY(_start)
SECTIONS
{
ENTRY(_start)
SECTIONS
{
+ . = 0x0;
.text : ALIGN(4)
{
.text : ALIGN(4)
{
- /* (.vector_table */
+ /* (.vector_table */
*(.text)
*(.text)
-
- } > FLASH
- .data :
+ *(.rodata)
+ }
+ . = 0x20000000;
+ .data :
{
*(.data)
{
*(.data)
- } > SRAM
+ }
+ .bss : ALIGN(4)
+ {
+ *(.bss)
+ }
+ _endofbss = .;
}
}