[Sparc] Include __tls_get_addr in symbol table for TLS calls to it
authorJames Clarke <jrtc27@jrtc27.com>
Fri, 15 May 2020 16:25:16 +0000 (17:25 +0100)
committerScott Kitterman <scott@kitterman.com>
Fri, 15 May 2020 16:25:16 +0000 (17:25 +0100)
commitf0e573a39a6489ed1a40cc4b41c87eefeb859b82
treec07a2bdce07bb0ce57d729731dce80c0020f1502
parent5914127706ad1d70b8d1c5964feb56245449e6fa
[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