mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user