Explorar o código

[BSP] Add '-nostartfiles' to link flags.

bernard %!s(int64=7) %!d(string=hai) anos
pai
achega
9463fd9ae8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bsp/qemu-vexpress-a9/rtconfig.py

+ 1 - 1
bsp/qemu-vexpress-a9/rtconfig.py

@@ -37,7 +37,7 @@ if PLATFORM == 'gcc':
     CFLAGS = DEVICE + ' -Wall'
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -D__ASSEMBLY__'
     LINK_SCRIPT = 'link.lds'
-    LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,system_vectors'+\
+    LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,system_vectors'+\
                       ' -T %s' % LINK_SCRIPT
 
     CPATH = ''