Linker User GuidePreface Overview of the Linker Linking Models Supported by armlink Image Structure and Generation Linker Optimization Features Elimination of common debug sections Elimination of common groups or sections Elimination of unused sections Elimination of unused virtual functions About linker feedback Example of using linker feedback Optimization with RW data compression How the linker chooses a compressor Options available to override the compression algo How compression is applied Considerations when working with RW data compressi Function inlining with the linker Factors that influence function inlining About branches that optimize to a NOP Linker reordering of tail calling sections Restrictions on reordering of tail calling section Linker merging of comment sections Getting Image Details Accessing and Managing Symbols with armlink Scatter-loading Features Scatter File Syntax Linker Command-line Options Linker Steering File Command Reference Via File Syntax
About linker feedback
4.5 About linker feedback
Linker feedback is a collaboration between the compiler and linker that can increase the amount of unused code that can be removed from an ELF image.
The feedback option produces a text file containing a list of unused functions, and functions that have been inlined by the linker. This information can be fed back to the compiler, which can rebuild the objects, placing these functions in their own sections. These sections can then be removed by the linker during usual unused section elimination.
The feedback file has the following format:
;#<FEEDBACK># ARM Linker,
The feedback file contains an entry for each object file. Each entry contains:
To use linker feedback, specify
The compiler issues a warning message if no feedback file exists. Therefore, you might want to leave the
Additional feedback options are provided by the linker:
of your data.