diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-14 21:11:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-14 21:11:16 +0000 |
commit | 55d02f3a138badd5b1f96240b4d4b416d9026e2c (patch) | |
tree | 62defb06614e1dff131d8e61ac7493cbb167ef50 /lib | |
parent | 8d63ba8260d26a256a082089e8fe8fcd38b5b949 (diff) | |
download | external_llvm-55d02f3a138badd5b1f96240b4d4b416d9026e2c.zip external_llvm-55d02f3a138badd5b1f96240b4d4b416d9026e2c.tar.gz external_llvm-55d02f3a138badd5b1f96240b4d4b416d9026e2c.tar.bz2 |
Fix another case of a .comm directive without a corresponding .type
directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCELFStreamer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index ba51f67..a2d94f5 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -409,9 +409,10 @@ void MCELFStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, if (!BindingExplicitlySet.count(Symbol)) { SetBinding(SD, ELF::STB_GLOBAL); SD.setExternal(true); - SetType(SD, ELF::STT_OBJECT); } + SetType(SD, ELF::STT_OBJECT); + if (GetBinding(SD) == ELF_STB_Local) { const MCSection *Section = getAssembler().getContext().getELFSection(".bss", MCSectionELF::SHT_NOBITS, |