diff options
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index 7a56ed55e0..304e5a5303 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -323,8 +323,11 @@ X86DarwinTargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV, Type = C->getType(); unsigned Size = TD->getABITypeSize(Type); - if (Size > 16) + if (Size > 16) { + // Too big for mergeable Size = 0; + Flags &= ~SectionFlags::Mergeable; + } Flags = SectionFlags::setEntitySize(Flags, Size); } @@ -513,8 +516,11 @@ X86ELFTargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV, Type = C->getType(); unsigned Size = TD->getABITypeSize(Type); - if (Size > 16) + if (Size > 16) { + // Too big for mergeable Size = 0; + Flags &= ~SectionFlags::Mergeable; + } Flags = SectionFlags::setEntitySize(Flags, Size); } |