summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2021-02-07 14:59:10 -0700
committerGitHub <noreply@github.com>2021-02-07 14:59:10 -0700
commit18bc3103637834b6e6ad57d1ac32715506534607 (patch)
tree4ca4ee7b5ea17e7f659d7e6f756f415c4b47b677
parent2cc234ef61c9ef80407f9e120cff162cd3a2285c (diff)
downloadbcm5719-ortega-18bc3103637834b6e6ad57d1ac32715506534607.tar.gz
bcm5719-ortega-18bc3103637834b6e6ad57d1ac32715506534607.zip
ape: Update the memory map to ensure firmware can be loaded by the ROM. (#212)
-rw-r--r--ape/ape.ld32
1 files changed, 21 insertions, 11 deletions
diff --git a/ape/ape.ld b/ape/ape.ld
index efb36c4..4360d42 100644
--- a/ape/ape.ld
+++ b/ape/ape.ld
@@ -44,34 +44,45 @@
ENTRY(__start)
+MEMORY
+{
+ SCRATCH (rwx) : ORIGIN = 0x00100000, LENGTH = 3K
+ RAM (rwx) : ORIGIN = 0x00100C00, LENGTH = 77K
+ STACK (rw) : ORIGIN = 0x00114000, LENGTH = 16K
+}
+
SECTIONS
{
- .text 0x00100000 : ALIGN(4) SUBALIGN(4)
+ .text : ALIGN(4) SUBALIGN(4)
{
KEEP(*(.init))
+ _ftext = .;
*(.text)
- }
+ _etext = .;
+ } > RAM
- .data . : ALIGN(4) SUBALIGN(4)
+ .data : ALIGN(4) SUBALIGN(4)
{
+ _fdata = .;
*(.data*)
*(.rodata*)
- }
+ _edata = .;
+ } > RAM
- _fbss = .;
- .bss . : ALIGN(4) SUBALIGN(4)
+ .bss : ALIGN(4) SUBALIGN(4)
{
+ _fbss = .;
*(.bss*)
- }
- _ebss = .;
+ _ebss = .;
+ } > RAM
- .stack . (NOLOAD) : ALIGN(4) SUBALIGN(4)
+ .stack (NOLOAD) : ALIGN(4) SUBALIGN(4)
{
_fstack = .;
_estack = 0x00118000;
- }
+ } > STACK
/DISCARD/ :
@@ -86,4 +97,3 @@ SECTIONS
*(.pdr)
}
}
-
OpenPOWER on IntegriCloud