Zebediah Figura : dbghelp: Don' t enforce child architecture in elf_map_file().

Alexandre Julliard julliard at winehq.org
Fri Jun 1 18:19:53 CDT 2018


Module: wine
Branch: master
Commit: c2c0e4fe510f75c757e5dbdc1b727a7c9f3d6f33
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c2c0e4fe510f75c757e5dbdc1b727a7c9f3d6f33

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Thu May 31 17:26:21 2018 -0500

dbghelp: Don't enforce child architecture in elf_map_file().

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dbghelp/elf_module.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index e047a7f..e4689a7 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -346,12 +346,7 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
     /* and check for an ELF header */
     if (memcmp(fmap->u.elf.elfhdr.e_ident,
                elf_signature, sizeof(elf_signature))) goto done;
-    /* and check 32 vs 64 size according to current machine */
-#ifdef _WIN64
-    if (fmap->u.elf.elfhdr.e_ident[EI_CLASS] != ELFCLASS64) goto done;
-#else
-    if (fmap->u.elf.elfhdr.e_ident[EI_CLASS] != ELFCLASS32) goto done;
-#endif
+
     fmap->addr_size = fmap->u.elf.elfhdr.e_ident[EI_CLASS] == ELFCLASS64 ? 64 : 32;
     fmap->u.elf.sect = HeapAlloc(GetProcessHeap(), 0,
                                  fmap->u.elf.elfhdr.e_shnum * sizeof(fmap->u.elf.sect[0]));




More information about the wine-cvs mailing list