forked from OSchip/llvm-project
Add a FIXME.
Thanks to Eric for the suggestion. llvm-svn: 228300
This commit is contained in:
parent
6a814ad142
commit
f8d662aa4b
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue