add finsh information section in ld script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@124 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
8bae291939
commit
34367d5eab
|
@ -74,6 +74,9 @@
|
||||||
/* the max number of cached sector */
|
/* the max number of cached sector */
|
||||||
#define DFS_CACHE_MAX_NUM 4
|
#define DFS_CACHE_MAX_NUM 4
|
||||||
|
|
||||||
|
/* use minilibc for gcc */
|
||||||
|
// #define RT_USING_MINILIBC
|
||||||
|
|
||||||
/* SECTION: lwip, a lighwight TCP/IP protocol stack */
|
/* SECTION: lwip, a lighwight TCP/IP protocol stack */
|
||||||
#define RT_USING_LWIP
|
#define RT_USING_LWIP
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,17 @@ SECTIONS
|
||||||
*(.glue_7)
|
*(.glue_7)
|
||||||
*(.glue_7t)
|
*(.glue_7t)
|
||||||
|
|
||||||
|
/* section information for finsh shell */
|
||||||
|
. = ALIGN(4);
|
||||||
|
__fsymtab_start = .;
|
||||||
|
KEEP(*(FSymTab))
|
||||||
|
__fsymtab_end = .;
|
||||||
|
. = ALIGN(4);
|
||||||
|
__vsymtab_start = .;
|
||||||
|
KEEP(*(VSymTab))
|
||||||
|
__vsymtab_end = .;
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
|
||||||
|
@ -32,24 +43,6 @@ SECTIONS
|
||||||
_sidata = _etext;
|
_sidata = _etext;
|
||||||
} > CODE = 0
|
} > CODE = 0
|
||||||
|
|
||||||
.FSymTab :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
__fsymtab_start = .;
|
|
||||||
*(.FSymTab)
|
|
||||||
__fsymtab_end = .;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > CODE
|
|
||||||
|
|
||||||
.VSymTab :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
__vsymtab_start = .;
|
|
||||||
*(.VSymTab)
|
|
||||||
__vsymtab_end = .;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > CODE
|
|
||||||
|
|
||||||
/* .data section which is used for initialized data */
|
/* .data section which is used for initialized data */
|
||||||
|
|
||||||
.data : AT (_sidata)
|
.data : AT (_sidata)
|
||||||
|
@ -80,6 +73,8 @@ SECTIONS
|
||||||
/* This is used by the startup in order to initialize the .bss secion */
|
/* This is used by the startup in order to initialize the .bss secion */
|
||||||
_ebss = . ;
|
_ebss = . ;
|
||||||
_estack = .;
|
_estack = .;
|
||||||
|
|
||||||
|
*(.bss.init)
|
||||||
} > DATA
|
} > DATA
|
||||||
__bss_end = .;
|
__bss_end = .;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue