From 0e98dc306b60286c36e4521e2ba2d3fff4ae2e6d Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 28 Sep 2020 12:46:25 -0700 Subject: [PATCH] risc-v:k210: Add KEEP on init_section --- boards/risc-v/k210/maix-bit/scripts/user-space.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/risc-v/k210/maix-bit/scripts/user-space.ld b/boards/risc-v/k210/maix-bit/scripts/user-space.ld index 7f5696670d..d72e6b15e8 100644 --- a/boards/risc-v/k210/maix-bit/scripts/user-space.ld +++ b/boards/risc-v/k210/maix-bit/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash