i386: Don't emit unsupported TLS relocs on Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 19 Jan 2023 21:48:58 +0000 (13:48 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Jan 2023 21:54:35 +0000 (13:54 -0800)
commit1bb82b89ae9d884016e55f2ade99c74fcc92a581
treedb3eb023f9929a15bdd886b4c410d07b5652dda1
parent77519ab324b0a417411ce0fd172aee0fa8349643
i386: Don't emit unsupported TLS relocs on Solaris

Emit R_386_TLS_LE and R_386_TLS_IE, instead of R_386_TLS_LE_32 and
R_386_TLS_IE_32, on Solaris.

PR ld/13671
* elf32-i386.c (elf_i386_tls_transition): Only emit R_386_TLS_LE,
R_386_TLS_IE on Solaris.
(elf_i386_relocate_section): Only use R_386_TLS_GD->R_386_TLS_LE
transition on Solaris.

Co-Authored-By: H.J. Lu <hjl.tools@gmail.com>
bfd/elf32-i386.c