[syslinux] [PATCH] memdisk: Fix mBFT alignment

Shao Miller Shao.Miller at yrdsb.edu.on.ca
Tue Dec 8 22:45:37 PST 2009


 From 66fd197d2e6d345b1cfdfedf71890928ba88b1e1 Mon Sep 17 00:00:00 2001
From: Shao Miller <shao.miller at yrdsb.edu.on.ca>
Date: Fri, 11 Dec 2009 01:17:50 +0000
Subject: [PATCH] memdisk: Fix mBFT alignment

It was previously possible that the mBFT might not be 16-byte
aligned because the .data section was not.

Signed-off-by: Shao Miller <shao.miller at yrdsb.edu.on.ca>
---
 memdisk/memdisk.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/memdisk/memdisk.inc b/memdisk/memdisk.inc
index a92bbda..e1a0901 100644
--- a/memdisk/memdisk.inc
+++ b/memdisk/memdisk.inc
@@ -938,7 +938,7 @@ writehex_common:
         ret
 %endif
 
-        section .data
+        section .data align=16
         alignb 2
 Int13Funcs    dw Reset        ; 00h - RESET
         dw GetStatus        ; 01h - GET STATUS
-- 
1.5.3.4

- Shao Miller
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-memdisk-Fix-mBFT-alignment.patch
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20091209/a3b68f49/attachment.ksh>


More information about the Syslinux mailing list