- //\r
- // We need to copy ImageContext since PeCoffLoaderGetImageInfo ()\r
- // will mangle the ImageAddress field\r
- //\r
- CopyMem (TmpContext, ImageContext, sizeof (*TmpContext));\r
-\r
- if (TmpContext->PeCoffHeaderOffset == 0) {\r
- Status = PeCoffLoaderGetImageInfo (TmpContext);\r
- if (RETURN_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR,\r
- "%a: PeCoffLoaderGetImageInfo () failed (Status = %r)\n",\r
- __FUNCTION__, Status));\r
- return Status;\r
- }\r
- }\r
-\r
- if (TmpContext->IsTeImage &&\r
- TmpContext->ImageAddress == ImageContext->ImageAddress) {\r
- DEBUG ((DEBUG_INFO, "%a: ignoring XIP TE image at 0x%lx\n", __FUNCTION__,\r
- ImageContext->ImageAddress));\r
- return RETURN_UNSUPPORTED;\r
+ Status = PeCoffLoaderGetImageInfo (ImageContext);\r
+ if (RETURN_ERROR (Status)) {\r
+ DEBUG ((DEBUG_ERROR,\r
+ "%a: PeCoffLoaderGetImageInfo () failed (Status == %r)\n",\r
+ __FUNCTION__, Status));\r
+ return Status;\r