Add the 'e' flag to all fopen(3) calls

This change adds the 'e' flag to all fopen(3) calls so they get
O_CLOEXEC.

Bug: None
Test: make tests
Change-Id: I27eb4e99be4823bca4ed81e95abaa683f4b877d0
diff --git a/elfparse.c b/elfparse.c
index 3ee8c9d..e76ebc4 100644
--- a/elfparse.c
+++ b/elfparse.c
@@ -70,7 +70,7 @@
 	FILE *elf_file = NULL;
 	uint8_t pHeader[HEADERSIZE] = "";
 
-	elf_file = fopen(path, "r");
+	elf_file = fopen(path, "re");
 	if (elf_file) {
 		if (fread(pHeader, 1, HEADERSIZE, elf_file) == HEADERSIZE) {
 			if (is_elf_magic(pHeader)) {