diff options
Diffstat (limited to 'src/elfcmp.c')
| -rw-r--r-- | src/elfcmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elfcmp.c b/src/elfcmp.c index 50464207..7ca7efa3 100644 --- a/src/elfcmp.c +++ b/src/elfcmp.c @@ -714,7 +714,7 @@ parse_opt (int key, char *arg, static Elf * open_file (const char *fname, int *fdp, Ebl **eblp) { - int fd = open (fname, O_RDONLY); + int fd = open (fname, O_RDONLY | O_BINARY); if (unlikely (fd == -1)) error (2, errno, gettext ("cannot open '%s'"), fname); Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); |
