aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-15 16:54:02 +0000
committerChris Lattner <sabre@nondot.org>2009-08-15 16:54:02 +0000
commitb6ab29940de8ead5b5612ae5414adc4d11e0b2e7 (patch)
treec579441450d9f1e6e7c13699f187ab69b6e3acab
parent272e308b303dd526842e79cbed0ce4c9f40fc126 (diff)
downloadexternal_llvm-b6ab29940de8ead5b5612ae5414adc4d11e0b2e7.zip
external_llvm-b6ab29940de8ead5b5612ae5414adc4d11e0b2e7.tar.gz
external_llvm-b6ab29940de8ead5b5612ae5414adc4d11e0b2e7.tar.bz2
the .eh_frame sections we generate need to be writable (which
is why they are datarel). This should fix PR4724, and is fallout from r78890. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79111 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index a695e24..d64cf07 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/lib/Target/TargetLoweringObjectFile.cpp
@@ -392,7 +392,8 @@ void TargetLoweringObjectFileELF::Initialize(MCContext &Ctx,
MCSectionELF::SHF_ALLOC, SectionKind::getReadOnly());
EHFrameSection =
getELFSection(".eh_frame", MCSectionELF::SHT_PROGBITS,
- MCSectionELF::SHF_ALLOC, SectionKind::getDataRel());
+ MCSectionELF::SHF_ALLOC | MCSectionELF::SHF_WRITE,
+ SectionKind::getDataRel());
// Debug Info Sections.
DwarfAbbrevSection =