nuclei: Update nuclei sdk of rt-thread support

Signed-off-by: Huaqi Fang <578567190@qq.com>
This commit is contained in:
Huaqi Fang 2020-04-03 16:51:01 +08:00
parent a042b806ef
commit 60320d34b1
7 changed files with 60 additions and 4 deletions

View File

@ -8,7 +8,9 @@
#include "gd32vf103v_eval.h" #include "gd32vf103v_eval.h"
#ifndef NUCLEI_BANNER
#define NUCLEI_BANNER 1 #define NUCLEI_BANNER 1
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -140,6 +140,20 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
*(.rdata) *(.rdata)
*(.rodata .rodata.*) *(.rodata .rodata.*)
/* section information for initial. */
. = ALIGN(4);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(4);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
*(.gnu.linkonce.r.*) *(.gnu.linkonce.r.*)
. = ALIGN(8); . = ALIGN(8);
*(.srodata.cst16) *(.srodata.cst16)

View File

@ -133,7 +133,6 @@ SECTIONS
*(.text.startup .text.startup.*) *(.text.startup .text.startup.*)
*(.text .text.*) *(.text .text.*)
*(.gnu.linkonce.t.*) *(.gnu.linkonce.t.*)
} >flash AT>flash } >flash AT>flash
.rodata : ALIGN(4) .rodata : ALIGN(4)

View File

@ -8,7 +8,9 @@
#include "board_hbird_eval.h" #include "board_hbird_eval.h"
#ifndef NUCLEI_BANNER
#define NUCLEI_BANNER 1 #define NUCLEI_BANNER 1
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -163,7 +163,20 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
*(.rdata) *(.rdata)
*(.rodata .rodata.*) *(.rodata .rodata.*)
*(.rti_fn .rti_fn.*) /* section information for initial. */
. = ALIGN(4);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(4);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
*(.gnu.linkonce.r.*) *(.gnu.linkonce.r.*)
} >ram AT>flash } >ram AT>flash

View File

@ -140,7 +140,20 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
*(.rdata) *(.rdata)
*(.rodata .rodata.*) *(.rodata .rodata.*)
*(.rti_fn .rti_fn.*) /* section information for initial. */
. = ALIGN(4);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(4);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
*(.gnu.linkonce.r.*) *(.gnu.linkonce.r.*)
. = ALIGN(8); . = ALIGN(8);
*(.srodata.cst16) *(.srodata.cst16)

View File

@ -66,7 +66,20 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
*(.rdata) *(.rdata)
*(.rodata .rodata.*) *(.rodata .rodata.*)
*(.rti_fn .rti_fn.*) /* section information for initial. */
. = ALIGN(4);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(4);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
*(.gnu.linkonce.r.*) *(.gnu.linkonce.r.*)
. = ALIGN(8); . = ALIGN(8);
*(.srodata.cst16) *(.srodata.cst16)