diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-14 19:40:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-14 19:40:55 +0000 |
commit | 765fb1a446e0f1f338858dc628b4a7a60da37e80 (patch) | |
tree | 6b14da43edc1a35f22f0989739bfedd8c1574fc3 /lib | |
parent | 60d5b5fdeec64b69c92db60242d3d90b3f978e69 (diff) | |
download | external_llvm-765fb1a446e0f1f338858dc628b4a7a60da37e80.zip external_llvm-765fb1a446e0f1f338858dc628b4a7a60da37e80.tar.gz external_llvm-765fb1a446e0f1f338858dc628b4a7a60da37e80.tar.bz2 |
Fix the type of a symbol created with .comm and no corresponding .type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCELFStreamer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index 1f4f146..ba51f67 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -409,6 +409,7 @@ 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); } if (GetBinding(SD) == ELF_STB_Local) { |