mirror of https://github.com/acidanthera/audk.git
Update PE/COFF libs to use machine type macros from PeImage.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7442 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7cf027141f
commit
820886d2d1
|
@ -204,16 +204,16 @@ PeCoffLoaderGetPdbPointer (
|
||||||
// generate PE32+ image with PE32 Magic.
|
// generate PE32+ image with PE32 Magic.
|
||||||
//
|
//
|
||||||
switch (Hdr.Pe32->FileHeader.Machine) {
|
switch (Hdr.Pe32->FileHeader.Machine) {
|
||||||
case EFI_IMAGE_MACHINE_IA32:
|
case IMAGE_FILE_MACHINE_I386:
|
||||||
//
|
//
|
||||||
// Assume PE32 image with IA32 Machine field.
|
// Assume PE32 image with IA32 Machine field.
|
||||||
//
|
//
|
||||||
Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC;
|
Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC;
|
||||||
break;
|
break;
|
||||||
case EFI_IMAGE_MACHINE_X64:
|
case IMAGE_FILE_MACHINE_X64:
|
||||||
case EFI_IMAGE_MACHINE_IPF:
|
case IMAGE_FILE_MACHINE_IA64:
|
||||||
//
|
//
|
||||||
// Assume PE32+ image with X64 or IPF Machine field
|
// Assume PE32+ image with X64 or IA64 Machine field
|
||||||
//
|
//
|
||||||
Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC;
|
Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue