From 8ace7ee42ff50eee4541fd7151bf8ecc32f82384 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 23 Sep 2016 08:17:00 +0200 Subject: 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 03dd062b05..6603a438f1 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 7c1e19054f..01be6d93b2 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); -- cgit v1.2.3