|
||||||||
|
Technical Support On-Line Manuals Linker User Guide |
Elimination of common groups or sections
The ARM compiler generates complete objects for linking. Therefore:
When these functions are declared in a common header file, the functions might be defined many times in separate objects that are subsequently linked together. To eliminate duplicates, the compiler compiles these functions into separate instances of common code sections or groups. It is possible that the separate instances of common code sections, or groups, are not identical. Some of the copies, for example, might be found in a library that has been built with different, but compatible, build options, different optimization, or debug options. If the copies are not identical, armlink retains the best available variant of each common code section, or group, based on the attributes of the input objects. armlink discards the rest. If the copies are identical, armlink retains the first section or group located. You control this optimization with the following linker options:
| |||||||
|
||||||||