IA64 PE/COFF (efi-app-ia64) image has bad VirtualSize field

Nick Clifton nickc@redhat.com
Fri Jan 2 19:34:00 GMT 2004


Hi Brian,

> It looks to me like the VirtualSize field of a loadable section
> should not be zero in an executable image, especially if
> SizeOfRawData is non-zero.  (And a zero-sized .text section doesn't
> make much sense....)
>
> Any idea what changed from binutils-2.11.90.0.8-12.2 to
> binutils-2.14.90.0.4-26,

Not really.  Internally the VirtualSize value is stored as the s_paddr
field of the bfd section structure, so my guess would be that at some
point this field is being set to zero.

> and how to fix it?

You could put a watchpoint on the relevant s_paddr field and find out
when/where it is set to zero.

If you can provide a *small* reproducible test case and post it to
this list then we may be able to investigate ourselves.

Cheers
        Nick
        



More information about the Binutils mailing list