Skip to content

Commit 0c8335d

Browse files
committed
Merge pull request #284 from grissiom/ls1b
Ls1b
2 parents 69621ff + 2c5cfe4 commit 0c8335d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

bsp/ls1bdev/applications/startup.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void rtthread_startup(void)
8585
rt_system_scheduler_start();
8686

8787
/* never reach here */
88-
return ;
88+
return;
8989
}
9090

9191
/*@}*/

bsp/ls1bdev/ls1b_ram.lds

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ SECTIONS
4646
KEEP(*(VSymTab))
4747
__vsymtab_end = .;
4848
. = ALIGN(4);
49+
50+
. = ALIGN(4);
51+
__rt_init_start = .;
52+
KEEP(*(SORT(.rti_fn*)))
53+
__rt_init_end = .;
54+
. = ALIGN(4);
4955
}
5056

5157
. = ALIGN(4);

bsp/ls1bdev/rtconfig.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@
1313
if CROSS_TOOL == 'gcc':
1414
PLATFORM = 'gcc'
1515
EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_MIPS_ELF/bin'
16-
elif CROSS_TOOL == 'keil':
17-
print '================ERROR============================'
18-
print 'Not support keil yet!'
19-
print '================================================='
20-
exit(0)
21-
elif CROSS_TOOL == 'iar':
16+
else:
2217
print '================ERROR============================'
23-
print 'Not support iar yet!'
18+
print 'Not support %s yet!' % CROSS_TOOL
2419
print '================================================='
2520
exit(0)
2621

@@ -43,7 +38,7 @@
4338
DEVICE = ' -mips32'
4439
CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer'
4540
AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp -DSYSTEM_STACK=0x80003fe8'
46-
LFLAGS = DEVICE + ' -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds'
41+
LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds'
4742

4843
CPATH = ''
4944
LPATH = ''

0 commit comments

Comments
 (0)