aboutsummaryrefslogtreecommitdiff
path: root/bfd/peXXigen.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-12-21 15:24:39 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-12-21 15:24:39 +0000
commitc91a930cb775123c1dcdfc3f9366bd3e21d2c5e5 (patch)
treed4b8ecf89c97bda2e1002e5c0c88ac04e9171be4 /bfd/peXXigen.c
parent43fbacdedceefe629062965ffb17f3539a17dca0 (diff)
downloadgdb-c91a930cb775123c1dcdfc3f9366bd3e21d2c5e5.zip
gdb-c91a930cb775123c1dcdfc3f9366bd3e21d2c5e5.tar.gz
gdb-c91a930cb775123c1dcdfc3f9366bd3e21d2c5e5.tar.bz2
2010-12-21 Kai Tietz <kai.tietz@onevision.com>
* peXXigen.c (_bfd_XXi_final_link_postscript): Use bfd_get_symbol_leading_char to determine "_tls_used" name. 2010-12-21 Kai Tietz <kai.tietz@onevision.com> * ld-pe/pe.exp: Add TLS directory test. * ld-pe/tlssec.s: New. * ld-pe/tlssec64.d: New. * ld-pe/tlssec32.d: New.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r--bfd/peXXigen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index 825229a..322c5ea 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -2418,7 +2418,9 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo)
}
h1 = coff_link_hash_lookup (coff_hash_table (info),
- "__tls_used", FALSE, FALSE, TRUE);
+ (bfd_get_symbol_leading_char(abfd) != 0
+ ? "__tls_used" : "_tls_used"),
+ FALSE, FALSE, TRUE);
if (h1 != NULL)
{
if ((h1->root.type == bfd_link_hash_defined