Don't create a dummy __tls_get_addr.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Oct 2017 17:27:34 +0000 (17:27 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Oct 2017 17:27:34 +0000 (17:27 +0000)
commit97c57b9e7b0e74b99eb01f51631595330cefef7a
treecae27e4d57bc313eef0a79893ea1729093d11e2a
parent072eff0930ee651433bd5e756f8e76549425ae10
Don't create a dummy __tls_get_addr.

We just don't need one with the current setup.

We only error on undefined references that are used by some
relocation.

If we managed to relax all uses of __tls_get_addr, no relocation uses
it and we don't produce an error.

This is less code and fixes the case were we fail to relax. Before we
would produce a broken output, but now we produce an error.

llvm-svn: 315334
lld/ELF/Writer.cpp
lld/test/ELF/arm-tls-norelax-gd-le.s
lld/test/ELF/tls-static.s