This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix for readelf hex-dump SHT_NOBITS bug
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