You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/04/19 06:05:49 UTC

[incubator-nuttx] 01/02: boards: hifive1-revb: Add _default_stack_limit to the linker scripts

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 17149fbb38f23094860d88e06cb69c4a31adaa38
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Mon Apr 19 07:58:45 2021 +0900

    boards: hifive1-revb: Add _default_stack_limit to the linker scripts
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script | 2 ++
 boards/risc-v/fe310/hifive1-revb/scripts/ld.script      | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script b/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script
index efb9b60..743af7a 100644
--- a/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script
+++ b/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script
@@ -74,6 +74,8 @@ SECTIONS
         *(COMMON)
         . = ALIGN(4);
         _ebss = ABSOLUTE(.);
+        . = ALIGN(32);
+        _default_stack_limit = ABSOLUTE(.);
     } > sram
 
     /* Stabs debugging sections. */
diff --git a/boards/risc-v/fe310/hifive1-revb/scripts/ld.script b/boards/risc-v/fe310/hifive1-revb/scripts/ld.script
index 67b28a2..aa70f30 100644
--- a/boards/risc-v/fe310/hifive1-revb/scripts/ld.script
+++ b/boards/risc-v/fe310/hifive1-revb/scripts/ld.script
@@ -74,6 +74,8 @@ SECTIONS
         *(COMMON)
         . = ALIGN(4);
         _ebss = ABSOLUTE(.);
+        . = ALIGN(32);
+        _default_stack_limit = ABSOLUTE(.);
     } > sram
 
     /* Stabs debugging sections. */