* 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.
This commit is contained in:
Thiemo Seufer 2006-08-14 12:19:20 +00:00
parent c0f9c60777
commit b59eed7911
2 changed files with 8 additions and 0 deletions

View 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

View 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. */