[PATCH v2] arm/raspberrypi: Fix linker map

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 29 06:14:14 UTC 2019


Increase size available for initilization and mode stacks.

Close #3774.
---
 bsps/arm/raspberrypi/start/linkcmds | 27 +++------------------------
 1 file changed, 3 insertions(+), 24 deletions(-)

diff --git a/bsps/arm/raspberrypi/start/linkcmds b/bsps/arm/raspberrypi/start/linkcmds
index 58423abecb..245470619c 100644
--- a/bsps/arm/raspberrypi/start/linkcmds
+++ b/bsps/arm/raspberrypi/start/linkcmds
@@ -14,31 +14,10 @@
  * @brief Raspberry Pi memory map.
  */
 
-/**
- * <table>
- *   <tr><th>Region Name</th><th>Region Begin</th><th>Region Size</th></tr>
- * <tr><td>VECTOR_RAM</td><td>0x08000000</td><td>8k</td></tr>
- * <tr><td>RAM</td><td>0x80008000</td><td>128M</td></tr>
- * </table>
- *
- * <table>
- *   <tr><th>Section Name</th><th>Section Runtime Region</th><th>Section Load Region</th></tr>
- * <tr><td>.start</td><td>RAM</td><td></td></tr>
- * <tr><td>.vector</td><td>VECTOR_RAM</td><td></td></tr>
- * <tr><td>.text</td><td>RAM</td><td>RAM_EXT</td></tr>
- * <tr><td>.rodata</td><td>RAM</td><td>RAM_EXT</td></tr>
- * <tr><td>.data</td><td>RAM</td><td>RAM_EXT</td></tr>
- * <tr><td>.fast</td><td>RAM</td><td>RAM_EXT</td></tr>
- * <tr><td>.bss</td><td>RAM</td><td></td></tr>
- * <tr><td>.work</td><td>RAM</td><td></td></tr>
- * <tr><td>.stack</td><td>RAM</td><td></td></tr>
- * </table>
- */
-
 MEMORY {
-        VECTOR_RAM     (AIW) : ORIGIN = 0x0       , LENGTH = 16k
-	RAM_MMU        (AIW) : ORIGIN = 0x00004000, LENGTH = 16k
-        RAM            (AIW) : ORIGIN = 0x00008000, LENGTH = 128M - 32k
+        VECTOR_RAM     (AIW) : ORIGIN = 0x0       , LENGTH = 1M - 16k
+        RAM_MMU        (AIW) : ORIGIN = 0x000fc000, LENGTH = 16k
+        RAM            (AIW) : ORIGIN = 0x00100000, LENGTH = 128M - 1M
 }
 
 REGION_ALIAS ("REGION_START", RAM);
-- 
2.16.4



More information about the devel mailing list