Explorar o código

[BSP] add -nostartfiles in link flags of sam7x bsp

Bernard Xiong %!s(int64=7) %!d(string=hai) anos
pai
achega
8f8827fab7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bsp/sam7x/rtconfig.py

+ 1 - 1
bsp/sam7x/rtconfig.py

@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
     DEVICE = ' -mcpu=arm7tdmi'
     CFLAGS = DEVICE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
-    LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=sam7x_rom_gcc.map,-cref,-u,_start -T sam7x_rom.ld'
+    LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=sam7x_rom_gcc.map,-cref,-u,_start -T sam7x_rom.ld -nostartfiles'
     CPATH = ''
     LPATH = ''