Skip to content

Commit 5c1c578

Browse files
committed
Fix ld options to improve lto
1 parent 168a578 commit 5c1c578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r",
1313
"-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", "-Wl,--wrap,_memalign_r",
1414
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
15-
"-Wl,-n", "-u printf", "-u main", "-u malloc", "-u snprintf", "-u _malloc_r"]
15+
"-Wl,-n", "-u __wrap_printf", "-u main", "-u malloc", "-u __wrap_snprintf", "-u _malloc_r"]
1616
},
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",

0 commit comments

Comments
 (0)