[mc] Fix ELF st_other flag.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Thu, 5 Dec 2013 00:34:11 +0000 (00:34 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Thu, 5 Dec 2013 00:34:11 +0000 (00:34 +0000)
commit175fe6839353fe3659adba11c1f2b11d3451e7dc
tree43e8cada1481e8473343968088b52275218c046b
parentfaf4d59137e85f917f868e784c8d83ccc29c4b7f
[mc] Fix ELF st_other flag.

ELF_Other_Weakref and ELF_Other_ThumbFunc seems to be LLVM
internal ELF symbol flags.  These should not be emitted to
object file.

This commit defines ELF_STO_Shift for the target-defined
flags for st_other, and increase the value of
ELF_Other_Shift to 16.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196440 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCELFSymbolFlags.h
lib/MC/ELFObjectWriter.cpp
lib/MC/MCELF.cpp
test/MC/ELF/thumb-st_other.s [new file with mode: 0644]