diff options
| author | Bernard Xiong <[email protected]> | 2014-05-29 14:03:37 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-05-29 14:03:37 +0800 |
| commit | 0c8335d5ab046ce9fe36c4e01d5d40e4ba152b49 (patch) | |
| tree | 08a9070c10f137ec3d9432937a3837be123775f4 | |
| parent | 69621ff5ccead48c145e9e64a055ca006d9e2faf (diff) | |
| parent | 2c5cfe4bcf6de5e13a06ec2cbcf4233e1f4cfa28 (diff) | |
Merge pull request #284 from grissiom/ls1b
Ls1b
| -rw-r--r-- | bsp/ls1bdev/applications/startup.c | 2 | ||||
| -rw-r--r-- | bsp/ls1bdev/ls1b_ram.lds | 6 | ||||
| -rw-r--r-- | bsp/ls1bdev/rtconfig.py | 11 |
3 files changed, 10 insertions, 9 deletions
diff --git a/bsp/ls1bdev/applications/startup.c b/bsp/ls1bdev/applications/startup.c index e73900485d..36ec17e46c 100644 --- a/bsp/ls1bdev/applications/startup.c +++ b/bsp/ls1bdev/applications/startup.c @@ -85,7 +85,7 @@ void rtthread_startup(void) rt_system_scheduler_start(); /* never reach here */ - return ; + return; } /*@}*/ diff --git a/bsp/ls1bdev/ls1b_ram.lds b/bsp/ls1bdev/ls1b_ram.lds index e55c645865..28a6cef006 100644 --- a/bsp/ls1bdev/ls1b_ram.lds +++ b/bsp/ls1bdev/ls1b_ram.lds @@ -46,6 +46,12 @@ SECTIONS KEEP(*(VSymTab)) __vsymtab_end = .; . = ALIGN(4); + + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); } . = ALIGN(4); diff --git a/bsp/ls1bdev/rtconfig.py b/bsp/ls1bdev/rtconfig.py index 1f189e9563..8373448a37 100644 --- a/bsp/ls1bdev/rtconfig.py +++ b/bsp/ls1bdev/rtconfig.py @@ -13,14 +13,9 @@ if os.getenv('RTT_CC'): if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_MIPS_ELF/bin' -elif CROSS_TOOL == 'keil': - print '================ERROR============================' - print 'Not support keil yet!' - print '=================================================' - exit(0) -elif CROSS_TOOL == 'iar': +else: print '================ERROR============================' - print 'Not support iar yet!' + print 'Not support %s yet!' % CROSS_TOOL print '=================================================' exit(0) @@ -43,7 +38,7 @@ READELF = PREFIX + 'readelf' DEVICE = ' -mips32' CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp -DSYSTEM_STACK=0x80003fe8' -LFLAGS = DEVICE + ' -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds' +LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds' CPATH = '' LPATH = '' |
