diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-18 16:56:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-18 16:56:17 +0000 |
commit | 35c3531754c392a533921a465a22f67f7e8fb743 (patch) | |
tree | 0f5f2795bd239d739fa2fca1035cce5c9aafc895 /lib/Target/TargetLoweringObjectFile.cpp | |
parent | 755baa83291b1ff97d217f308f74a82abdf107fe (diff) |
fix COFF targets (mingw/cygwin) to provide ehframe and LSDA sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 67fbc1f6ca..84b1b93ab0 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -963,6 +963,14 @@ void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx, StaticDtorSection = getCOFFSection(".dtors", false, SectionKind::getDataRel()); + // FIXME: We're emitting LSDA info into a readonly section on COFF, even + // though it contains relocatable pointers. In PIC mode, this is probably a + // big runtime hit for C++ apps. Either the contents of the LSDA need to be + // adjusted or this should be a data section. + LSDASection = + getCOFFSection(".gcc_except_table", false, SectionKind::getReadOnly()); + EHFrameSection = + getCOFFSection(".eh_frame", false, SectionKind::getDataRel()); // Debug info. // FIXME: Don't use 'directive' mode here. |