aboutsummaryrefslogtreecommitdiff
path: root/elf_ops.h
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-24 18:41:27 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-24 18:41:27 +0000
commit9437454a8427c1b32de4ab7a426615ea237e59c6 (patch)
treec48ad5b03f80251291e3c58cdac5ef37dcc99339 /elf_ops.h
parent7743e588395535f1bc13f4f747069bae43935432 (diff)
downloadqemu-9437454a8427c1b32de4ab7a426615ea237e59c6.zip
qemu-9437454a8427c1b32de4ab7a426615ea237e59c6.tar.gz
qemu-9437454a8427c1b32de4ab7a426615ea237e59c6.tar.bz2
Fix loading above 4G
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3230 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'elf_ops.h')
-rw-r--r--elf_ops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf_ops.h b/elf_ops.h
index 75cbded..fe2ef9b 100644
--- a/elf_ops.h
+++ b/elf_ops.h
@@ -145,8 +145,8 @@ int glue(load_elf, SZ)(int fd, int64_t virt_to_phys_addend,
struct elfhdr ehdr;
struct elf_phdr *phdr = NULL, *ph;
int size, i, total_size;
- elf_word low = 0, high = 0;
- elf_word mem_size, addr;
+ elf_word mem_size;
+ target_phys_addr_t addr, low = 0, high = 0;
uint8_t *data = NULL;
if (read(fd, &ehdr, sizeof(ehdr)) != sizeof(ehdr))