diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-15 16:54:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-15 16:54:02 +0000 |
commit | 447b9b43a342ee04a991a4030064f2f7ec759f55 (patch) | |
tree | 6c7f80b8057b8ca90fd481cf182c3b70e96066b5 /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | 3ee64e8f4b9f098efce88239c0c5ebc2f53cf450 (diff) | |
download | llvm-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.cpp | 3 |
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 = |