flipper-io / flipper

Flipper is a development platform that can be controlled from any programming language.
https://www.flipper.io/
Apache License 2.0
70 stars 15 forks source link

Dead object code remains in binaries targeting AVR and ARM #60

Closed TravisWhitaker closed 7 years ago

TravisWhitaker commented 8 years ago

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.

georgemorgan commented 7 years ago

Moved to boards.