[rtems commit] bsp/mvme147*: Fix linker issue

Sebastian Huber sebh at rtems.org
Fri Sep 23 06:53:15 UTC 2016


Module:    rtems
Branch:    master
Commit:    8ace7ee42ff50eee4541fd7151bf8ecc32f82384
Changeset: http://git.rtems.org/rtems/commit/?id=8ace7ee42ff50eee4541fd7151bf8ecc32f82384

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Sep 23 08:17:00 2016 +0200

bsp/mvme147*: Fix linker issue

The GNU linker does not allow a nonconstant expression for a region
length.

---

 c/src/lib/libbsp/m68k/mvme147/startup/linkcmds  | 4 +---
 c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/mvme147/startup/linkcmds b/c/src/lib/libbsp/m68k/mvme147/startup/linkcmds
index 03dd062..6603a43 100644
--- a/c/src/lib/libbsp/m68k/mvme147/startup/linkcmds
+++ b/c/src/lib/libbsp/m68k/mvme147/startup/linkcmds
@@ -16,12 +16,10 @@
  *  May 1996
  */
 
-RamSize = DEFINED(RamSize) ? RamSize : 4M;
-
 MEMORY
 {
     bootrom_reserved : ORIGIN = 0x00000000, LENGTH = 0x5000
-    ram	             : ORIGIN = 0x00005000, LENGTH = RamSize - 0x5000
+    ram	             : ORIGIN = 0x00005000, LENGTH = 4M - 0x5000
 }
 
 REGION_ALIAS ("REGION_TEXT", ram);
diff --git a/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds b/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds
index 7c1e190..01be6d9 100644
--- a/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds
+++ b/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds
@@ -16,12 +16,10 @@
  *  May 1996
  */
 
-RamSize = DEFINED(RamSize) ? RamSize : 4M;
-
 MEMORY
 {
     bootrom_reserved : ORIGIN = 0x00000000, LENGTH = 0x7000
-    ram              : ORIGIN = 0x00007000, LENGTH = RamSize - 0x7000
+    ram              : ORIGIN = 0x00007000, LENGTH = 4M - 0x7000
 }
 
 REGION_ALIAS ("REGION_TEXT", ram);




More information about the vc mailing list