diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-12-21 15:24:39 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2010-12-21 15:24:39 +0000 |
commit | c91a930cb775123c1dcdfc3f9366bd3e21d2c5e5 (patch) | |
tree | d4b8ecf89c97bda2e1002e5c0c88ac04e9171be4 /bfd/peXXigen.c | |
parent | 43fbacdedceefe629062965ffb17f3539a17dca0 (diff) | |
download | gdb-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.c | 4 |
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 |