From 4be76e2152d58c11e3a451144d32d5235c63eaf0 Mon Sep 17 00:00:00 2001 From: Charles Davis Date: Thu, 26 May 2011 05:19:54 +0000 Subject: [PATCH] Align Win64 EH Table sections to 4 bytes. llvm-svn: 132111 --- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index e9cfe43e6d49..11625214c662 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/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());