Closed leonty closed 3 months ago
The options "-ffunction-sections", "-fdata-sections" should be used in compiler calls, not linker. https://gcc.gnu.org/onlinedocs/gnat_ugn/Compilation-options.html
The linker needs "-Wl,-gc-sections" instead to perform dead code elimination.
Thanks for the hint! I will check this week. I guess only default values need to be changed.
The options "-ffunction-sections", "-fdata-sections" should be used in compiler calls, not linker. https://gcc.gnu.org/onlinedocs/gnat_ugn/Compilation-options.html
The linker needs "-Wl,-gc-sections" instead to perform dead code elimination.