forked from Imagelibrary/binutils-gdb
* elflink.c (elf_link_add_object_symbols): Don't create .tcommon
section for relocatable link. * ld-elf/tls_common.exp: New test. * ld-elf/tls_common.s: New file.
This commit is contained in:
@@ -3621,7 +3621,8 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
|
||||
goto error_free_vers;
|
||||
|
||||
if (isym->st_shndx == SHN_COMMON
|
||||
&& ELF_ST_TYPE (isym->st_info) == STT_TLS)
|
||||
&& ELF_ST_TYPE (isym->st_info) == STT_TLS
|
||||
&& !info->relocatable)
|
||||
{
|
||||
asection *tcomm = bfd_get_section_by_name (abfd, ".tcommon");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user