[IA64] Simulator bootloader fails with gcc 4
authorIan Wienand <ianw@gelato.unsw.edu.au>
Wed, 20 Jul 2005 05:32:00 +0000 (22:32 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 18 Aug 2005 21:10:41 +0000 (14:10 -0700)
commit4aec0fb12267718c750475f3404337ad13caa8f5
tree8d98ed612d6fb7648991529dd1c8700299047bce
parent75e8727fbb3749075b6df36be636a3045ed9d515
[IA64] Simulator bootloader fails with gcc 4
After building a fresh tree with gcc 4 I can't boot the simulator as
the bootloader loader dies with

loading /home/ianw/kerntest/kerncomp//build/sim_defconfig/vmlinux...
failed to read phdr

After some investigation I believe this is do with differences between
the alignment of variables on the stack between gcc 3 and 4 and the
ski simulator.  If you trace through with the simulator you can see
that the disk_stat structure value returned from the SSC_WAIT_COMPLETION
call seems to be only half loaded.  I guess it doesn't like the alignment
of the input.

Signed-off-by: Ian Wienand <ianw@gelato.unsw.edu.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/hp/sim/boot/bootloader.c