From b59eed791185545a2ccb2eef9e4e70b758a7e639 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Mon, 14 Aug 2006 12:19:20 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog | 6 ++++++ bfd/elfxx-mips.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4c7c224..1ee68b9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2006-08-14 Thiemo Seufer + + * 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 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 726c458..8ebd2f9 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -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. */ -- 2.7.4