ARM Compiler toolchain Using the Linker - ARM Information Center
ARM Compiler toolchain Using the Linker - ARM Information Center
ARM Compiler toolchain Using the Linker - ARM Information Center
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
6.3.1 See also<br />
(incl. Generated)<br />
Getting information about images<br />
armlink might generate image contents, for example, interworking veneers, and<br />
input sections such as region tables. If <strong>the</strong> Object Totals row includes this type of<br />
data, it is shown in this row.<br />
In <strong>the</strong> example, <strong>the</strong>re are 19 bytes of RO data in total, of which 16 bytes is<br />
linker-generated RO data.<br />
Library Totals<br />
Shows how many bytes are occupied by library members that have been extracted<br />
and added to <strong>the</strong> image as individual objects.<br />
(incl. Padding)<br />
armlink inserts padding, if required, to force section alignment. If <strong>the</strong> Object<br />
Totals row includes this type of data, it is shown in <strong>the</strong> associated (incl. Padding)<br />
row. Similarly, if <strong>the</strong> Library Totals row includes this type of data, it is shown in<br />
its associated row.<br />
In <strong>the</strong> example, <strong>the</strong>re are 19 bytes of RO data in <strong>the</strong> object total, of which 3 bytes<br />
is linker-generated padding, and 805 bytes of RO data in <strong>the</strong> library total, with 6<br />
bytes of padding.<br />
Grand Totals<br />
Shows <strong>the</strong> true size of <strong>the</strong> image. In <strong>the</strong> example, <strong>the</strong>re are 10200 bytes of ZI data<br />
(in Object Totals) and 300 of ZI data (in Library Totals) giving a total of 10500<br />
bytes.<br />
ELF Image Totals<br />
If you are using RW data compression (<strong>the</strong> default) to optimize ROM size, <strong>the</strong><br />
size of <strong>the</strong> final image changes and this is reflected in <strong>the</strong> output from --info.<br />
Compare <strong>the</strong> number of bytes under Grand Totals and ELF Image Totals to see <strong>the</strong><br />
effect of compression.<br />
In <strong>the</strong> example, RW data compression is not enabled. If data is compressed, <strong>the</strong><br />
RW value changes.<br />
ROM Totals<br />
Shows <strong>the</strong> minimum size of ROM required to contain <strong>the</strong> image. This does not<br />
include ZI data and debug information which is not stored in <strong>the</strong> ROM.<br />
Concepts<br />
• <strong>Linker</strong> options for getting information about images on page 6-2.<br />
Reference<br />
<strong>Linker</strong> Reference:<br />
• --info=topic[,topic,...] on page 2-80.<br />
<strong>ARM</strong> DUI 0474C Copyright © 2010-2011 <strong>ARM</strong>. All rights reserved. 6-5<br />
ID080411 Non-Confidential