diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-18 22:23:46 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-18 22:23:46 +0000 |
commit | e7523e0619981d5e49c370cfe7a18d442d32a465 (patch) | |
tree | 6e59589cc17f8390b2cc35e442778edf4570e530 /InOsEmuPkg/Unix/Sec | |
parent | 417a8020ab59456ecbe4554532976e948dd93f5c (diff) | |
download | edk2-e7523e0619981d5e49c370cfe7a18d442d32a465.zip edk2-e7523e0619981d5e49c370cfe7a18d442d32a465.tar.gz edk2-e7523e0619981d5e49c370cfe7a18d442d32a465.tar.bz2 |
InOsEmuPkg: Make build dir different for IA-32. Fix PCD XIP issues.
Signed-off-by andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11851 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'InOsEmuPkg/Unix/Sec')
-rw-r--r-- | InOsEmuPkg/Unix/Sec/SecMain.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/InOsEmuPkg/Unix/Sec/SecMain.c b/InOsEmuPkg/Unix/Sec/SecMain.c index 807f067..bf59489 100644 --- a/InOsEmuPkg/Unix/Sec/SecMain.c +++ b/InOsEmuPkg/Unix/Sec/SecMain.c @@ -670,19 +670,19 @@ SecPeCoffGetEntryPoint ( } if (ImageContext.ImageAddress != (UINTN)Pe32Data) { - // - // Relocate image to match the address where it resides - // - ImageContext.ImageAddress = (UINTN)Pe32Data; - Status = PeCoffLoaderLoadImage (&ImageContext); - if (EFI_ERROR (Status)) { - return Status; - } + // + // Relocate image to match the address where it resides + // + ImageContext.ImageAddress = (UINTN)Pe32Data; + Status = PeCoffLoaderLoadImage (&ImageContext); + if (EFI_ERROR (Status)) { + return Status; + } - Status = PeCoffLoaderRelocateImage (&ImageContext); - if (EFI_ERROR (Status)) { - return Status; - } + Status = PeCoffLoaderRelocateImage (&ImageContext); + if (EFI_ERROR (Status)) { + return Status; + } } else { // // Or just return image entry point |