experiment with using function-sections for linking (for smaller libs and executables)
currently the only support we have for making small (ish) executables using split objects, which
- is not on by default, for various good reasons
- can seriously penalize compile times
- in tandem, something like strip is often used, but on some platforms/targets (such as the iOS cross compiler), strip will actually break things
might be worth seriously experimenting with function-sections / gc-sections in the object files we generate.
example slide deck on this http://elinux.org/images/2/2d/ELC2010-gc-sections_Denys_Vlasenko.pdf
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Task |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |