Skip to content

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

  1. is not on by default, for various good reasons
  2. can seriously penalize compile times
  3. 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information