aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-06-20 16:36:18 +0000
committerJakub Jelinek <jakub@redhat.com>2006-06-20 16:36:18 +0000
commit6a4a0940e56e3f60f38b2b49991efc0969bc206a (patch)
tree01a67d0b0281e8b8aff9093ff385b40fbec3be01 /bfd/elflink.c
parente36284abcf727bced126cad8c8a1cc7ba33ad6c2 (diff)
downloadgdb-6a4a0940e56e3f60f38b2b49991efc0969bc206a.zip
gdb-6a4a0940e56e3f60f38b2b49991efc0969bc206a.tar.gz
gdb-6a4a0940e56e3f60f38b2b49991efc0969bc206a.tar.bz2
* 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.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 0a32963..4b20749 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -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");