ntdll: Add Support for loading ARM PEs.
This commit is contained in:
parent
7abdbe62d1
commit
186ada5472
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue