path: root/solenv/gbuild/platform/
diff options
authorNoel Grandin <>2020-05-27 09:22:27 +0200
committerNoel Grandin <>2020-05-27 10:05:02 +0200
commitf4acb2a916de9762dfe7fe1b4120ea758e234d34 (patch)
tree328a8165b9971fcf4560afee2c7ae3a743362a73 /solenv/gbuild/platform/
parent3a028418190790c3bbaf6e505ff55b7bb8c0b474 (diff)
Revert "bloaty: use -ffunction-sections and --gc-sections for linking"
This reverts commit bd39ec554f90badccfb26c843fd0d43237f1b622. Reason for revert: For -ffunction-sections and -fdata-sections, <> warns: "Only use these options when there are significant benefits from doing so. When you specify these options, the assembler and linker create larger object and executable files and are also slower. These options affect code generation. They prevent optimizations by the compiler and assembler using relative locations inside a translation unit since the locations are unknown until link time. An example of such an optimization is relaxing calls to short call instructions." Change-Id: I84225ca94de9afff23bdd2913c77095d5d26f7ee Reviewed-on: Tested-by: Jenkins Reviewed-by: Noel Grandin <>
Diffstat (limited to 'solenv/gbuild/platform/')
1 files changed, 1 insertions, 3 deletions
diff --git a/solenv/gbuild/platform/ b/solenv/gbuild/platform/
index 766d53c07526..1707a7481ee6 100644
--- a/solenv/gbuild/platform/
+++ b/solenv/gbuild/platform/
@@ -106,9 +106,7 @@ gb_LinkTarget_LDFLAGS += -fprofile-arcs -lgcov
-# Strip out duplicates, which happen a lot with e.g. UNO
-# functions declared in UNO header files.
gb_CFLAGS_COMMON += -ffunction-sections -fdata-sections
gb_CXXFLAGS_COMMON += -ffunction-sections -fdata-sections
gb_LinkTarget_LDFLAGS += -Wl,--gc-sections