Don't create an unused _GLOBAL_OFFSET_TABLE_.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 May 2015 15:20:00 +0000 (15:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 May 2015 15:20:00 +0000 (15:20 +0000)
commitc4e38f605ece18948602ed104c3d138140386691
tree71448d3c56199d5d1c15fa581c63f0f7b9bc77fb
parent6952e75aa57f18d0371bda9f41e9075c0666b5f2
Don't create an unused _GLOBAL_OFFSET_TABLE_.

This was a bug for bug compatibility with gas that is completely unnecessary.
If a _GLOBAL_OFFSET_TABLE_ symbol is used, it will already be created by
the time we get to the ELF writer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238432 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/ELF/got.s
test/MC/ELF/weakref-reloc.s