aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCSectionELF.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-15 19:53:20 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-15 19:53:20 +0000
commit766f25306af343fb2784350cb4d8cd9ca180f0d3 (patch)
treec51638c97cb5a38503e0e178931d11ba13fc85d9 /lib/MC/MCSectionELF.cpp
parentbcd9b3b6b119420edffd259e5e05c5e0cf5fbc6c (diff)
downloadexternal_llvm-766f25306af343fb2784350cb4d8cd9ca180f0d3.tar.gz
external_llvm-766f25306af343fb2784350cb4d8cd9ca180f0d3.tar.bz2
external_llvm-766f25306af343fb2784350cb4d8cd9ca180f0d3.zip
ELF: Add support for the exclude section bit for gas compat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCSectionELF.cpp')
-rw-r--r--lib/MC/MCSectionELF.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/MCSectionELF.cpp b/lib/MC/MCSectionELF.cpp
index bf1a984a9b..ff9c4d351a 100644
--- a/lib/MC/MCSectionELF.cpp
+++ b/lib/MC/MCSectionELF.cpp
@@ -75,6 +75,8 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI,
OS << ",#execinstr";
if (Flags & ELF::SHF_WRITE)
OS << ",#write";
+ if (Flags & ELF::SHF_EXCLUDE)
+ OS << ",#exclude";
if (Flags & ELF::SHF_TLS)
OS << ",#tls";
OS << '\n';
@@ -84,6 +86,8 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI,
OS << ",\"";
if (Flags & ELF::SHF_ALLOC)
OS << 'a';
+ if (Flags & ELF::SHF_EXCLUDE)
+ OS << 'e';
if (Flags & ELF::SHF_EXECINSTR)
OS << 'x';
if (Flags & ELF::SHF_GROUP)