Add a FIXME.

Thanks to Eric for the suggestion.

llvm-svn: 228300
This commit is contained in:
Rafael Espindola 2015-02-05 14:57:47 +00:00
parent 6a814ad142
commit f8d662aa4b
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ getELFSectionFlags(SectionKind K, bool InCOMDAT) {
if (K.isThreadLocal())
Flags |= ELF::SHF_TLS;
// FIXME: There is nothing in ELF preventing an SHF_MERGE from being
// in a comdat. We just avoid it for now because we don't print
// those .sections correctly.
if (!InCOMDAT && (K.isMergeableCString() || K.isMergeableConst()))
Flags |= ELF::SHF_MERGE;