aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
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
commit447b9b43a342ee04a991a4030064f2f7ec759f55 (patch)
tree6c7f80b8057b8ca90fd481cf182c3b70e96066b5 /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent3ee64e8f4b9f098efce88239c0c5ebc2f53cf450 (diff)
downloadllvm-447b9b43a342ee04a991a4030064f2f7ec759f55.zip
llvm-447b9b43a342ee04a991a4030064f2f7ec759f55.tar.gz
llvm-447b9b43a342ee04a991a4030064f2f7ec759f55.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. llvm-svn: 79111
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index a695e24..d64cf07 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/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 =