bsp,abstract-machine: fix shell command table during linking

This commit is contained in:
Zihao Yu 2023-05-24 15:03:39 +08:00
parent 7e91ba791e
commit 4586aafb06
2 changed files with 11 additions and 3 deletions

View file

@ -2,6 +2,17 @@ SECTIONS {
. = ALIGN(8);
.myextra : {
/* section information for finsh shell */
. = ALIGN(8);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(8);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
. = ALIGN(8);
/* section information for initial. */
. = ALIGN(8);
__rt_init_start = .;

View file

@ -1,9 +1,6 @@
#include <am.h>
#include <rtthread.h>
void *__fsymtab_start = NULL;
void *__fsymtab_end = NULL;
#define RT_HW_HEAP_BEGIN heap.start
#define RT_HW_HEAP_END heap.end