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

Brian J. Johnson bjohnson@sgi.com
Wed Jan 7 21:15:00 GMT 2004


On Wed, 7 Jan 2004, Nick Clifton wrote:
>
> I am still having problems however, as when I assemble, link and
> convert this file it appears that the VirtualSize field is set to a
> non-zero value.  Here is what I did (using an ia64-elf toolchain built
> from todays binutils sources in the CVS repository, running on an x86
> processor running RH EL3):
>
>   % as try.s -o try.o
>   % ld -nostdlib -shared -Bsymbolic -L/usr/lib try.o -o try.so \
>     -L/usr/lib
>
>   [I left out the crt0-efi-ia64.o start up file, the libefi.so and
>    libgnuefi.so libraries and the elf_ia64_efi.lds linker script as I
>    did not have any of these]
>
>   % objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
>     -j .rela -j .reloc --target=efi-app-ia64 try.so try.efi
>
>   % od -t x1z try.efi
>   [snip]
> 0000640 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40  >............@..@<
> 0000660 2e 74 65 78 74 00 00 00 10 00 00 00 60 03 00 00  >.text.......`...<
> 0000700 00 02 00 00 60 07 00 00 00 00 00 00 00 00 00 00  >....`...........<
>   [snip]
> ...
> I am trying to download the gun-efi release to see if the linker map
> is the key to the problem, but so far all the FTP servers that I have
> tried have been busy...

I can send you a copy of the linker map if you still need it.
Although I tried your commands above with binutils 2.14.90.0.4, and
got a zero for VirtualSize.  So it seems to be binutils version
related.  Do you have an older build handy you could try?

						Brian J. Johnson

--------------------------------------------------------------------

  "Think big thoughts but relish small pleasures."
                                        -- Life's Little Instruction Book



More information about the Binutils mailing list