This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Free words in section
- From: Paul Koning <paul_koning at dell dot com>
- To: Paulo J. Matos <pocmatos at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 19 Oct 2010 15:55:04 -0400
- Subject: Re: Free words in section
- References: <8662wyno8a.fsf@pm18pc01.europe.root.pri>
What does "free" mean? And why is it interesting? It's hard to see what you're after.
paul
On Oct 19, 2010, at 12:25 PM, Paulo J. Matos wrote:
> Hi,
>
> I am trying to write a program over BFD that determines the number of
> free words per section.
>
> Since the whole section is always written to the object file, and non
> written words as 0x00, I guess there's no precise way to tell if a
> word 0x00 is free or used but written as a 0x00. So, I was wondering if
> there are any heuristics around to determine this.
>
> For example, the following 3 sections are examples of what I mean:
> completely_free (15 words free):
> 000000000000000000000000000000
>
> written_in_beg (9 words free):
> afde12ce982a000000000000000000
>
> in_blocks (9 words free):
> 000000afde12ce982a000000000000
>
> Cheers,
> --
> PMatos
>