diff options
| author | Bernard Xiong <[email protected]> | 2014-11-01 23:17:04 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-11-01 23:17:04 +0800 |
| commit | fdfb4dad79c62d30db14d0614bc5b4dc373c41ee (patch) | |
| tree | 8a1551407bb5eacf5a3be10f2a7de193b01c30a9 /bsp/lpc408x | |
| parent | 6281ab2bbe1aea91cc32baf74f512cdea2ce4fb4 (diff) | |
[BSP] fix GCC compiling issue in LPC408x bsp
Diffstat (limited to 'bsp/lpc408x')
| -rw-r--r-- | bsp/lpc408x/applications/application.c | 3 | ||||
| -rw-r--r-- | bsp/lpc408x/rtthread-lpc408x.ld | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bsp/lpc408x/applications/application.c b/bsp/lpc408x/applications/application.c index 854777b1fb..91a59bcea1 100644 --- a/bsp/lpc408x/applications/application.c +++ b/bsp/lpc408x/applications/application.c @@ -15,8 +15,9 @@ #include <rtthread.h> #include <board.h> +#ifdef RT_USING_COMPONENTS_INIT #include <components.h> - +#endif /* thread phase init */ void rt_init_thread_entry(void *parameter) diff --git a/bsp/lpc408x/rtthread-lpc408x.ld b/bsp/lpc408x/rtthread-lpc408x.ld index adcfa03c36..746f3948eb 100644 --- a/bsp/lpc408x/rtthread-lpc408x.ld +++ b/bsp/lpc408x/rtthread-lpc408x.ld @@ -38,6 +38,12 @@ SECTIONS __vsymtab_end = .; . = ALIGN(4); + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + PROVIDE(__ctors_start__ = .); /* old GCC version uses .ctors */ KEEP(*(SORT(.ctors.*))) |
