diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index 1ff497059d..ddd4585ef3 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -5,14 +5,14 @@ "-fmessage-length=0", "-fno-exceptions", "-ffunction-sections", "-fdata-sections", "-funsigned-char", "-MMD", - "-fomit-frame-pointer", "-Os", "-flto", "-g", "-DMBED_TRAP_ERRORS_ENABLED=1"], + "-fomit-frame-pointer", "-Os", "-g", "-DMBED_TRAP_ERRORS_ENABLED=1"], "asm": ["-c", "-x", "assembler-with-cpp"], "c": ["-c", "-std=gnu11"], "cxx": ["-c", "-std=gnu++14", "-fno-rtti", "-Wvla"], "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", "-u main"] + "-Wl,-n"] }, "ARMC6": { "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", diff --git a/tools/profiles/extensions/lto.json b/tools/profiles/extensions/lto.json index 59366afb32..116b95e2c6 100644 --- a/tools/profiles/extensions/lto.json +++ b/tools/profiles/extensions/lto.json @@ -2,5 +2,9 @@ "ARMC6": { "common": ["-flto"], "ld": ["--lto", "--lto_level=Oz"] + }, + "GCC_ARM": { + "common": ["-flto"], + "ld": ["-u main"] } } diff --git a/tools/profiles/release.json b/tools/profiles/release.json index feaaf468a0..a4312a3c2e 100644 --- a/tools/profiles/release.json +++ b/tools/profiles/release.json @@ -5,14 +5,14 @@ "-fmessage-length=0", "-fno-exceptions", "-ffunction-sections", "-fdata-sections", "-funsigned-char", "-MMD", - "-fomit-frame-pointer", "-Os", "-flto", "-DNDEBUG", "-g"], + "-fomit-frame-pointer", "-Os", "-DNDEBUG", "-g"], "asm": ["-c", "-x", "assembler-with-cpp"], "c": ["-c", "-std=gnu11"], "cxx": ["-c", "-std=gnu++14", "-fno-rtti", "-Wvla"], "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", "-u main"] + "-Wl,-n"] }, "ARMC6": { "common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",