diff --git a/tools/profiles/debug.json b/tools/profiles/debug.json index c925d6d446..e80443c6cf 100644 --- a/tools/profiles/debug.json +++ b/tools/profiles/debug.json @@ -11,7 +11,8 @@ "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"], "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", - "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"] + "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit", + "-Wl,-n"] }, "ARM": { "common": ["-c", "--gnu", "-Otime", "--split_sections", diff --git a/tools/profiles/develop.json b/tools/profiles/develop.json index d4755e9b81..2889019d71 100644 --- a/tools/profiles/develop.json +++ b/tools/profiles/develop.json @@ -11,7 +11,8 @@ "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"], "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", - "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"] + "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit", + "-Wl,-n"] }, "ARM": { "common": ["-c", "--gnu", "-Otime", "--split_sections", diff --git a/tools/profiles/release.json b/tools/profiles/release.json index 18543746be..0906b96b44 100644 --- a/tools/profiles/release.json +++ b/tools/profiles/release.json @@ -11,7 +11,8 @@ "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"], "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", - "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"] + "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit", + "-Wl,-n"] }, "ARM": { "common": ["-c", "--gnu", "-Ospace", "--split_sections",