Commit 186ada54 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ntdll: Add Support for loading ARM PEs.

parent 7abdbe62
......@@ -1097,6 +1097,9 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
#ifdef __x86_64__
if (nt->FileHeader.Machine != IMAGE_FILE_MACHINE_AMD64)
#elif defined(__ARMEL__)
if (nt->FileHeader.Machine != IMAGE_FILE_MACHINE_ARM &&
nt->FileHeader.Machine != IMAGE_FILE_MACHINE_THUMB)
#else
if (nt->FileHeader.Machine != IMAGE_FILE_MACHINE_I386)
#endif
......@@ -1116,6 +1119,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
case IMAGE_FILE_MACHINE_ALPHA64: MESSAGE("Alpha-64"); break;
case IMAGE_FILE_MACHINE_AMD64: MESSAGE("AMD-64"); break;
case IMAGE_FILE_MACHINE_ARM: MESSAGE("ARM"); break;
case IMAGE_FILE_MACHINE_THUMB: MESSAGE("ARM Thumb"); break;
case IMAGE_FILE_MACHINE_SPARC: MESSAGE("SPARC"); break;
default: MESSAGE("Unknown-%04x", nt->FileHeader.Machine); break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment