projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small read fix.
[qemu]
/
loader.c
diff --git
a/loader.c
b/loader.c
index
b2d6423
..
3fa681d
100644
(file)
--- 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];
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;
if (fd < 0) {
perror(filename);
return -1;