summaryrefslogtreecommitdiffstats
path: root/tests/dwelfgnucompressed.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dwelfgnucompressed.c')
-rw-r--r--tests/dwelfgnucompressed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dwelfgnucompressed.c b/tests/dwelfgnucompressed.c
index 0132271c..e8427427 100644
--- a/tests/dwelfgnucompressed.c
+++ b/tests/dwelfgnucompressed.c
@@ -42,7 +42,7 @@ main (int argc, char *argv[])
for (cnt = 1; cnt < argc; ++cnt)
{
- int fd = open (argv[cnt], O_RDONLY);
+ int fd = open (argv[cnt], O_RDONLY | O_BINARY);
Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
if (elf == NULL)