diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-26 18:44:32 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-26 18:44:32 +0000 |
commit | 5a86c5b4575d8ac8ca1d0bfa068e1ffcf20ee7ea (patch) | |
tree | 2d22498fe39706f301f6d6bd760be40321e82014 /lib/MC/MCObjectFileInfo.cpp | |
parent | bc5f6ddfbab753900482a4a5850d54951213336e (diff) |
On an ELF system, ".debug_str" is mergeable and contains null terminated strings
composed of one byte characters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | lib/MC/MCObjectFileInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp index df8b99d2be..397e9c3a62 100644 --- a/lib/MC/MCObjectFileInfo.cpp +++ b/lib/MC/MCObjectFileInfo.cpp @@ -354,8 +354,9 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { Ctx->getELFSection(".debug_pubtypes", ELF::SHT_PROGBITS, 0, SectionKind::getMetadata()); DwarfStrSection = - Ctx->getELFSection(".debug_str", ELF::SHT_PROGBITS, 0, - SectionKind::getMetadata()); + Ctx->getELFSection(".debug_str", ELF::SHT_PROGBITS, + ELF::SHF_MERGE | ELF::SHF_STRINGS, + SectionKind::getMergeable1ByteCString()); DwarfLocSection = Ctx->getELFSection(".debug_loc", ELF::SHT_PROGBITS, 0, SectionKind::getMetadata()); |