This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Free words in section
- From: pocmatos at gmail dot com (Paulo J. Matos)
- To: binutils at sources dot redhat dot com
- Date: Tue, 19 Oct 2010 17:25:57 +0100
- Subject: Free words in section
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