--- bfd/elfxx-mips.c.orig 2010-09-04 14:21:35.000000000 +0800 +++ bfd/elfxx-mips.c 2010-09-04 14:22:14.000000000 +0800 @@ -2772,7 +2772,7 @@ = (struct mips_elf_link_hash_entry *) arg1; struct mips_elf_count_tls_arg *arg = arg2; - if (hm->tls_type & GOT_TLS_GD) + if (hm->tls_type & (GOT_TLS_GD | GOT_TLS_LDM)) arg->needed += 2; if (hm->tls_type & GOT_TLS_IE) arg->needed += 1;