Commit 699e4642a9df17591e7586c91921fc3d6b31616e
1 parent
64866c3d
win32 fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1908 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
loader.c
@@ -200,7 +200,7 @@ int load_elf(const char *filename, int64_t virt_to_phys_addend, | @@ -200,7 +200,7 @@ int load_elf(const char *filename, int64_t virt_to_phys_addend, | ||
200 | int fd, data_order, must_swab, ret; | 200 | int fd, data_order, must_swab, ret; |
201 | uint8_t e_ident[EI_NIDENT]; | 201 | uint8_t e_ident[EI_NIDENT]; |
202 | 202 | ||
203 | - fd = open(filename, O_RDONLY); | 203 | + fd = open(filename, O_RDONLY | O_BINARY); |
204 | if (fd < 0) { | 204 | if (fd < 0) { |
205 | perror(filename); | 205 | perror(filename); |
206 | return -1; | 206 | return -1; |