diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-04-04 22:35:08 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-04-04 22:35:08 +0000 |
| commit | 12de7b2446f6f04700370ed8755e0fc4fc1d941b (patch) | |
| tree | 7ff715b1b2e28ca09c58e046b4ab6dc8610de1d4 /llvm/lib/MC | |
| parent | 69a9e931ce2cf9f4cf0f9cfd74e20120f97efd29 (diff) | |
| download | bcm5719-llvm-12de7b2446f6f04700370ed8755e0fc4fc1d941b.tar.gz bcm5719-llvm-12de7b2446f6f04700370ed8755e0fc4fc1d941b.zip | |
Change section flag character for SHF_LINK_ORDER to "o".
GAS uses "m" as a compatibility alias for "M" (SHF_MERGE).
"o" is free, except on ia64, where it already means SHF_LINK_ORDER.
llvm-svn: 299479
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCParser/ELFAsmParser.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/MC/MCSectionELF.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCParser/ELFAsmParser.cpp b/llvm/lib/MC/MCParser/ELFAsmParser.cpp index 3476a02e0fd..ed911cbc756 100644 --- a/llvm/lib/MC/MCParser/ELFAsmParser.cpp +++ b/llvm/lib/MC/MCParser/ELFAsmParser.cpp @@ -298,7 +298,7 @@ static unsigned parseSectionFlags(StringRef flagsStr, bool *UseLastGroup) { case 'w': flags |= ELF::SHF_WRITE; break; - case 'm': + case 'o': flags |= ELF::SHF_LINK_ORDER; break; case 'M': diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index 56c51d7539e..78fe01cca24 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -104,7 +104,7 @@ void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T, if (Flags & ELF::SHF_TLS) OS << 'T'; if (Flags & ELF::SHF_LINK_ORDER) - OS << 'm'; + OS << 'o'; // If there are target-specific flags, print them. Triple::ArchType Arch = T.getArch(); |

