Bring r252305 back with a test fix.
We now create the .eh_frame section early, just like every other special
section.
This means that the special flags are visible in code that explicitly
asks for ".eh_frame".
llvm-svn: 252313
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp
index 92d2b966..5a0bb7f 100644
--- a/llvm/lib/MC/MCSectionELF.cpp
+++ b/llvm/lib/MC/MCSectionELF.cpp
@@ -133,6 +133,8 @@
OS << "note";
else if (Type == ELF::SHT_PROGBITS)
OS << "progbits";
+ else if (Type == ELF::SHT_X86_64_UNWIND)
+ OS << "unwind";
if (EntrySize) {
assert(Flags & ELF::SHF_MERGE);