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 | 1a62d78325c5f659b53c13f529661823b86fb104 (patch) | |
| tree | 8dbd9ba010c185d14ba8240e12c4ab46acfeaf5e /llvm/lib | |
| parent | f91381e82c4a114a96a47bb17426f7fb5e538a33 (diff) | |
| download | bcm5719-llvm-1a62d78325c5f659b53c13f529661823b86fb104.tar.gz bcm5719-llvm-1a62d78325c5f659b53c13f529661823b86fb104.zip | |
On an ELF system, ".debug_str" is mergeable and contains null terminated strings
composed of one byte characters.
llvm-svn: 143044
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index df8b99d2be6..397e9c3a62a 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/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()); |

