[Sparc] Include __tls_get_addr in symbol table for TLS calls to it
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 20 Jan 2020 09:26:04 +0000 (09:26 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 20 Jan 2020 09:26:04 +0000 (09:26 +0000)
commit49cf07774d02c1d09bfd5f5316e6b1f2b87ba6b8
treecfe5ee94f95b0f2679fc44cf6121926bb077af45
parent14a7485349cad73a2366e66bd6f935a7b07926b0
[Sparc] Include __tls_get_addr in symbol table for TLS calls to it

Last-Update: 2018-02-14

Global Dynamic and Local Dynamic call relocations only implicitly
reference __tls_get_addr, but it still needs to be in the symbol table
to be bound at link time otherwise it fails to link. For details, see
https://sourceware.org/bugzilla/show_bug.cgi?id=22832.

Gbp-Pq: Name sparc64-add-missing-tls-get-addr.diff
lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp