From: Charles Davis Date: Thu, 26 May 2011 05:19:54 +0000 (+0000) Subject: Align Win64 EH Table sections to 4 bytes. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fad99ae6e7ecb66eaaab3a42d6e6e97550e13349;p=oota-llvm.git Align Win64 EH Table sections to 4 bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132111 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index e9cfe43e6d4..11625214c66 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -994,6 +994,7 @@ void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx, PDataSection = getContext().getCOFFSection(".pdata", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | + COFF::IMAGE_SCN_ALIGN_4BYTES | COFF::IMAGE_SCN_MEM_READ | COFF::IMAGE_SCN_MEM_WRITE, SectionKind::getDataRel()); @@ -1001,6 +1002,7 @@ void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx, XDataSection = getContext().getCOFFSection(".xdata", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | + COFF::IMAGE_SCN_ALIGN_4BYTES | COFF::IMAGE_SCN_MEM_READ | COFF::IMAGE_SCN_MEM_WRITE, SectionKind::getDataRel());