git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131951
91177308-0d34-0410-b5e6-
96231b3b80d8
return SectionKind::getThreadBSS();
if (Name == ".eh_frame")
- return SectionKind::getDataRel();
+ return SectionKind::getReadOnlyWithRel();
return K;
}
if (K.isText())
Flags |= ELF::SHF_EXECINSTR;
- if (K.isWriteable())
+ if (K.isWriteable() && !K.isReadOnlyWithRel())
Flags |= ELF::SHF_WRITE;
if (K.isThreadLocal())
--- /dev/null
+; RUN: llc < %s -mtriple x86_64-unknown-linux-gnu | FileCheck %s
+
+@__FRAME_END__ = constant [1 x i32] zeroinitializer, section ".eh_frame"
+
+; CHECK: .section .eh_frame,"a",@progbits