瀏覽代碼

[BSP] fix compiling issue in mb9bf506r bsp

Bernard Xiong 7 年之前
父節點
當前提交
7209a74e1c

+ 2 - 0
bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S

@@ -150,8 +150,10 @@ __cs3_interrupt_vector_cortex_m:
     .section .cs3.reset,"x",%progbits
     .thumb_func
     .globl  __cs3_reset_cortex_m
+    .globl  _start
     .type   __cs3_reset_cortex_m, %function
 __cs3_reset_cortex_m:
+_start:
     .fnstart
     LDR     R0, =SystemInit
     BLX     R0

+ 1 - 1
bsp/mb9bf506r/rtconfig.py

@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
     DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections'
     CFLAGS = DEVICE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
-    LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T rtthread-mb9bf506.ld'
+    LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T rtthread-mb9bf506.ld -nostartfiles'
 
     CPATH = ''
     LPATH = ''

+ 0 - 1
bsp/mb9bf506r/rtthread-mb9bf506.ld

@@ -18,7 +18,6 @@
 OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
 ENTRY(_start)
 SEARCH_DIR(.)
-GROUP(-lgcc -lc -lcs3 -lcs3unhosted -lcs3micro)
 
 MEMORY
 {