2006-04-08 H.J. Lu <hongjiu.lu@intel.com>
commit4e51bf852b9db32ab3f323c955ffb9f5a11036a7
authorH.J. Lu <hjl@lucon.org>
Sat, 8 Apr 2006 22:57:22 +0000 (8 22:57 +0000)
committerH.J. Lu <hjl@lucon.org>
Sat, 8 Apr 2006 22:57:22 +0000 (8 22:57 +0000)
tree4783b44b68b1f58bb692322b3684924da9b88011
parentf0511bf173643dd8f1212e328698e84168804594
2006-04-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/2513
* elf32-i386.c (GOT_TLS_MASK): New macro for tls_type.
(GOT_TLS_IE_IE): Likewise.
(GOT_TLS_IE_GD): Likewise.
(GOT_TLS_IE_MASK): Likewise.
(elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD
and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE
respectively.
(allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD
are set, treat tls_type as GOT_TLS_IE_BOTH.
(elf_i386_relocate_section): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c