Despite the use of static archives, dead object code makes it into these binaries. I'll update with a counterexample when I'm at a computer next.
The correct technique is to compile each translation unit targeting these platforms with '-fdata-sections -ffunction-sections' and perform linking with '--gc-sections'.
Static archives should be made available via the build system, but should be separate non-default targets.
Despite the use of static archives, dead object code makes it into these binaries. I'll update with a counterexample when I'm at a computer next.
The correct technique is to compile each translation unit targeting these platforms with '-fdata-sections -ffunction-sections' and perform linking with '--gc-sections'.
Static archives should be made available via the build system, but should be separate non-default targets.