diff options
author | Evan Lojewski <github@meklort.com> | 2021-02-07 14:59:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 14:59:10 -0700 |
commit | 18bc3103637834b6e6ad57d1ac32715506534607 (patch) | |
tree | 4ca4ee7b5ea17e7f659d7e6f756f415c4b47b677 | |
parent | 2cc234ef61c9ef80407f9e120cff162cd3a2285c (diff) | |
download | bcm5719-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.ld | 32 |
1 files changed, 21 insertions, 11 deletions
@@ -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) } } - |