diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 19:53:20 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 19:53:20 +0000 |
commit | ac511cac7779ac44cf23a780b000e6734b05bd17 (patch) | |
tree | e2fdb3126437efd95de12de7417f8724fdfda9c0 /llvm/lib/MC/MCSectionELF.cpp | |
parent | a4b521b7fc53e1bd26a820758eb1cef9b975bd2b (diff) | |
download | bcm5719-llvm-ac511cac7779ac44cf23a780b000e6734b05bd17.tar.gz bcm5719-llvm-ac511cac7779ac44cf23a780b000e6734b05bd17.zip |
ELF: Add support for the exclude section bit for gas compat.
llvm-svn: 190769
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionELF.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index bf1a984a9bf..ff9c4d351a1 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/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) |