This patch is cosmetic. It prevents references to __tls_get_addr_opt
(an alias for __tls_get_addr) when the optimisation isn't possible.
* elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if
not PLT_NEW.
+2015-02-28 Alan Modra <amodra@gmail.com>
+
+ * elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if
+ not PLT_NEW.
+
2015-02-27 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (need_convert_mov_to_lea): New.
htab = ppc_elf_hash_table (info);
htab->tls_get_addr = elf_link_hash_lookup (&htab->elf, "__tls_get_addr",
FALSE, FALSE, TRUE);
+ if (htab->plt_type != PLT_NEW)
+ htab->params->no_tls_get_addr_opt = TRUE;
+
if (!htab->params->no_tls_get_addr_opt)
{
struct elf_link_hash_entry *opt, *tga;