https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 53473 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53473&action=edit A patch This patch uses a single UNSPEC_TLS_LD_BASE in the whole function.