aboutsummaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-07 18:06:27 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-07 18:06:27 +0000
commit699e4642a9df17591e7586c91921fc3d6b31616e (patch)
tree3e4b2b946032c43dd6541ec851bd028cb839ad2c /loader.c
parent64866c3d5c20fa5e7cc5838030e59965e55f7a85 (diff)
downloadqemu-699e4642a9df17591e7586c91921fc3d6b31616e.zip
qemu-699e4642a9df17591e7586c91921fc3d6b31616e.tar.gz
qemu-699e4642a9df17591e7586c91921fc3d6b31616e.tar.bz2
win32 fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1908 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader.c b/loader.c
index b2d6423..3fa681d 100644
--- a/loader.c
+++ b/loader.c
@@ -200,7 +200,7 @@ int load_elf(const char *filename, int64_t virt_to_phys_addend,
int fd, data_order, must_swab, ret;
uint8_t e_ident[EI_NIDENT];
- fd = open(filename, O_RDONLY);
+ fd = open(filename, O_RDONLY | O_BINARY);
if (fd < 0) {
perror(filename);
return -1;