elf-loader: Provide the possibility to relocate s390 ELF files
commit5dce07e1cb67aab265b16e39b0b9d812199a4d22
authorThomas Huth <thuth@linux.vnet.ibm.com>
Mon, 9 Mar 2015 10:12:52 +0000 (9 11:12 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 10 Mar 2015 08:26:27 +0000 (10 09:26 +0100)
treead13b7a201a54862bf24b050bf8514ec2f6065cf
parent5c8d542004b7474560bc4cb017d597ea320bd4ac
elf-loader: Provide the possibility to relocate s390 ELF files

On s390, we would like to load our "BIOS" s390-ccw.img to the end of the
RAM. Therefor we need the possibility to relocate the ELF file so that
it can also run from different addresses. This patch adds the necessary
code to the QEMU ELF loader function.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Message-Id: <1425895973-15239-2-git-send-email-thuth@linux.vnet.ibm.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/core/loader.c
include/elf.h
include/hw/elf_ops.h