diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index f8b3d1bd96..1ff497059d 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -12,7 +12,7 @@ "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", "-Wl,--wrap,_memalign_r", "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit", - "-Wl,-n"] + "-Wl,-n", "-u main"] }, "ARMC6": { "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", diff --git a/tools/profiles/release.json b/tools/profiles/release.json index 129514d0bf..feaaf468a0 100644 --- a/tools/profiles/release.json +++ b/tools/profiles/release.json @@ -12,7 +12,7 @@ "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", "-Wl,--wrap,_memalign_r", "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit", - "-Wl,-n"] + "-Wl,-n", "-u main"] }, "ARMC6": { "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",