summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-17 04:49:07 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-17 04:49:07 +0000
commitf7bef78cc0843b2bd827cca76eba8f629bb79bf3 (patch)
treea565e8d757e50af2de1868d843180b0523ef2fa1
parent0d10bfc88a7cb9683cac6016ef1c11b5c8370bf3 (diff)
downloadedk2-platforms-f7bef78cc0843b2bd827cca76eba8f629bb79bf3.tar.xz
update
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8112 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--UnixPkg/Sec/SecMain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/UnixPkg/Sec/SecMain.c b/UnixPkg/Sec/SecMain.c
index b5f6092519..ffeed21e75 100644
--- a/UnixPkg/Sec/SecMain.c
+++ b/UnixPkg/Sec/SecMain.c
@@ -751,7 +751,7 @@ Returns:
//
// Align buffer on section boundry
//
- ImageContext.ImageAddress += ImageContext.SectionAlignment;
+ ImageContext.ImageAddress += ImageContext.SectionAlignment - 1;
ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1);