* elfxx-mips.c (_bfd_mips_elf_symbol_processing,
authorThiemo Seufer <ths@networkno.de>
Mon, 14 Aug 2006 12:19:20 +0000 (12:19 +0000)
committerThiemo Seufer <ths@networkno.de>
Mon, 14 Aug 2006 12:19:20 +0000 (12:19 +0000)
_bfd_mips_elf_add_symbol_hook): Don't try to place small common TLS
symbols in .scommon.

bfd/ChangeLog
bfd/elfxx-mips.c

index 4c7c224a25b58fbc610d0febb642d6b45ef89959..1ee68b9f2179b80d448536fc2867b15d03806a9e 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-14  Thiemo Seufer  <ths@mips.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_symbol_processing,
+       _bfd_mips_elf_add_symbol_hook): Don't try to place small common TLS
+       symbols in .scommon.
+
 2006-08-11  Thiemo Seufer  <ths@mips.com>
 
        * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set
index 726c45835c14c66c13f803e140b3c6d9caaf2ab8..8ebd2f9450b2bab1e8582dd3f1b9317b73810ac4 100644 (file)
@@ -5095,6 +5095,7 @@ _bfd_mips_elf_symbol_processing (bfd *abfd, asymbol *asym)
       /* Common symbols less than the GP size are automatically
         treated as SHN_MIPS_SCOMMON symbols on IRIX5.  */
       if (asym->value > elf_gp_size (abfd)
+         || ELF_ST_TYPE (elfsym->internal_elf_sym.st_info) == STT_TLS
          || IRIX_COMPAT (abfd) == ict_irix6)
        break;
       /* Fall through.  */
@@ -5735,6 +5736,7 @@ _bfd_mips_elf_add_symbol_hook (bfd *abfd, struct bfd_link_info *info,
       /* Common symbols less than the GP size are automatically
         treated as SHN_MIPS_SCOMMON symbols.  */
       if (sym->st_size > elf_gp_size (abfd)
+         || ELF_ST_TYPE (sym->st_info) == STT_TLS
          || IRIX_COMPAT (abfd) == ict_irix6)
        break;
       /* Fall through.  */
This page took 0.046332 seconds and 4 git commands to generate.