This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Free words in section


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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]