This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Free words in section
On 20/10/2010 11:32, Paulo J. Matos wrote:
> Paul Koning <paul_koning@dell.com> writes:
>
>> What does "free" mean? And why is it interesting? It's hard to see what you're after.
>>
>
> Sorry if I mis-explained myself.
> We are writing sections of a certain constant size, which might not be
> completely full, meaning parts of the sections don't have useful words
> but zero. What I am trying to calculate is the number of words which are
> zero and meaningless.
>
> This is useful for example to know, how much more space we still have in
> a data / constant / program section.
>
Do you mean the amount of padding added by LD? That can be read from the
map file output; look for the "*fill*" entries.
cheers,
DaveK