[PATCH] Fix for readelf hex-dump SHT_NOBITS bug

Nick Clifton nickc@redhat.com
Thu Oct 30 14:17:00 GMT 2003


Hi Daniel,

>> I think that it might be better to issue a warning message along the
>> lines of "dumping the contents of section <foo> despite the fact that
>> it has the SHT_NOBITS attribute".  What do you think ?
>
> What do you mean by "non-zero-sized"?  The size of a NOBITS section is
> normally the size of the memory that should be allocated to it, and it
> takes up no file space.  Readelf dumps garbage from the following
> section (and confused me to no end the last time I noticed this).

Ah - yes I see what you mean.  In which case I withdraw my objection
to the patch and I will apply it today.

Cheers
        Nick
        



More information about the Binutils mailing list