summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-02-22 23:30:59 +0000
committer[email protected] <[email protected]>2011-02-22 23:30:59 +0000
commita32bda9ec74b566b7b2b1352ee1057bebdfe5080 (patch)
treee4f6480ab47cb06a021f13ea895f10c018a5f18f
parentead014f966417d9f00d66b2062ec23c157ca3f42 (diff)
fix variable section end issue in finsh shell, which submit by aozima.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1288 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/finsh/shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index fec8c1fa77..cecf9b0cd1 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -16,6 +16,8 @@
* 2010-01-18 Bernard fix down then up key bug.
* 2010-03-19 Bernard fix backspace issue and fix device read in shell.
* 2010-04-01 Bernard add prompt output when start and remove the empty history
+ * 2011-02-23 Bernard fix variable section end issue of finsh shell
+ * initialization when use GNU GCC compiler.
*/
#include <rtthread.h>
@@ -480,7 +482,7 @@ void finsh_system_init(void)
extern int __vsymtab_start;
extern int __vsymtab_end;
finsh_system_function_init(&__fsymtab_start, &__fsymtab_end);
- finsh_system_var_init(&__vsymtab_start, &__vsymtab_start);
+ finsh_system_var_init(&__vsymtab_start, &__vsymtab_end);
#endif
#endif