Correctly detect if a symbol uses a reserved section index or not.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Mar 2014 00:16:43 +0000 (00:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Mar 2014 00:16:43 +0000 (00:16 +0000)
commit3008f805620b3a4ff7cdad482cd9f226c9f2c133
treef3ca7ed0b907c468af70b53a99be82e66f3d69fb
parent596516bef8425bbce7e6363d3a002e908747ec6f
Correctly detect if a symbol uses a reserved section index or not.

The logic was incorrect for variables, causing them to end up in the wrong
section if the section had an index >= 0xff00.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204771 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/ELF/many-sections-2.s