summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ELFTargetAsmInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/ELFTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/ELFTargetAsmInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp
index e33ae423ac1..fe006a3c607 100644
--- a/llvm/lib/Target/ELFTargetAsmInfo.cpp
+++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp
@@ -157,7 +157,8 @@ ELFTargetAsmInfo::getSectionForMergableConstant(uint64_t Size,
if (SecName)
return getNamedSection(SecName,
- SectionFlags::setEntitySize(SectionFlags::Mergeable,
+ SectionFlags::setEntitySize(SectionFlags::Mergeable|
+ SectionFlags::Small,
Size));
return getReadOnlySection(); // .rodata
OpenPOWER on IntegriCloud