ELF loading should fail for virt != phys

Prevent loading of elf files which does not have virtual address same
as physical address.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
ELF: Enter LE binary in LE mode

Trampoline code in the LE binary were helping fix this. This patch now
takes care of switching the mode to LE for LE elf binaries.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Workaround to make grub2 assign server ip from dhcp ack packet only

Sometimes the bootp reply message from a dhcp nak packet is passed to bootloader
(grub2) through "bootp-response" property. Grub2 does not verify if it is an
ack or nak packet and goes on picking up the server ip address from the message.
This makes grub2 unable to make further communication. The workaround here is
made to avoid this situation by copying the bootp reply message only when it is
from dhcp ack packet.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Fix kernel loading

commit 66119a19 changed the stack representation of go-64 calls, this
call site needs update as well. r12 is not passed as an argument
anymore.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
version: update to 20140318

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>