diff options
author | Thiemo Seufer <ths@networkno.de> | 2006-08-14 12:19:20 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2006-08-14 12:19:20 +0000 |
commit | b59eed791185545a2ccb2eef9e4e70b758a7e639 (patch) | |
tree | 3fa5171850125793c39f9c0a355f52d320fdb465 /bfd/elfxx-mips.c | |
parent | c0f9c60777287936e0d2c0684c2beb985eb81852 (diff) | |
download | gdb-b59eed791185545a2ccb2eef9e4e70b758a7e639.zip gdb-b59eed791185545a2ccb2eef9e4e70b758a7e639.tar.gz gdb-b59eed791185545a2ccb2eef9e4e70b758a7e639.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. */ |