From a0f3b64f2c82c387610bb52462822d86a12a9f7c Mon Sep 17 00:00:00 2001 From: Thanassis Tsiodras Date: Mon, 27 Jul 2020 12:13:18 +0200 Subject: [PATCH] Drop unused symbols during linking. --- .../c_pohi_rtems_with_ada_cgpr/partition.tmplt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/concurrency_view/c_pohi_rtems_with_ada_cgpr/partition.tmplt b/templates/concurrency_view/c_pohi_rtems_with_ada_cgpr/partition.tmplt index 53733c9c..4c138d83 100644 --- a/templates/concurrency_view/c_pohi_rtems_with_ada_cgpr/partition.tmplt +++ b/templates/concurrency_view/c_pohi_rtems_with_ada_cgpr/partition.tmplt @@ -49,6 +49,8 @@ configuration project RTEMS_WITH_ADA is Common_C_Switches := ("--pipe", + "-fdata-sections", + "-ffunction-sections", @@IF@@ @_CPU_Family_@ /= gr740 "-mcpu=cypress", "-DLEON3", @@ -107,6 +109,7 @@ configuration project RTEMS_WITH_ADA is Common_C_Linker_Switches := ("--pipe", "-g", + "-Wl,--gc-sections", @@IF@@ @_CPU_Family_@ = gr740 "-B/opt/rtems-5.1-2019.07.25/sparc-rtems5/gr740/lib", @@ELSIF@@ @_CPU_Family_@ = gr712rc -- GitLab