[Sparc] Include __tls_get_addr in symbol table for TLS calls to it
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 23 Mar 2020 10:59:23 +0000 (10:59 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 23 Mar 2020 10:59:23 +0000 (10:59 +0000)
commit140116493bd5190b8dca89fd12deec1af0873b27
treec95bd14672971ff2f435d84bea3a47a5ccbf6e47
parent4afdc2ac247fa369e97780032f519aab6a2768dd
[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