@@ -89,7 +89,7 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
89
89
self .cc = [join (GOANNA_PATH , "goannacc" ), "--with-cc=" + main_cc .replace ('\\ ' , '/' ), "-std=gnu99" , "--dialect=gnu" , '--output-format="%s"' % self .GOANNA_FORMAT ] + common_flags
90
90
self .cppc = [join (GOANNA_PATH , "goannac++" ), "--with-cxx=" + main_cppc .replace ('\\ ' , '/' ), "-std=gnu++98" , "-fno-rtti" , "--dialect=gnu" , '--output-format="%s"' % self .GOANNA_FORMAT ] + common_flags
91
91
92
- self .ld = [join (tool_path , "arm-none-eabi-gcc" ), "-Wl,--gc-sections" , "-Wl,--wrap,main" ] + self .cpu
92
+ self .ld = [join (tool_path , "arm-none-eabi-gcc" ), "-Wl,--gc-sections" , "-Wl,--wrap,main" , "-Wl,--wrap,_malloc_r" , "-Wl,--wrap,_free_r" , "-Wl,--wrap,_realloc_r" ] + self .cpu
93
93
self .sys_libs = ["stdc++" , "supc++" , "m" , "c" , "gcc" ]
94
94
95
95
self .ar = join (tool_path , "arm-none-eabi-ar" )
@@ -277,4 +277,3 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
277
277
if target .name in ["LPC1768" , "LPC4088" , "LPC4088_DM" , "LPC4330" , "UBLOX_C027" , "LPC2368" ]:
278
278
self .ld .extend (["-u _printf_float" , "-u _scanf_float" ])
279
279
self .ld += ["-nostdlib" ]
280
-
0 commit comments