aboutsummaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
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 b2d6423fed..3fa681dbb0 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;