From 0b67d19b117e7f8e887569cd227dec4fff9ab763 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 20 Jun 2006 16:36:18 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b6996a868d..8b3268548f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-06-20 Jakub Jelinek + + * elflink.c (elf_link_add_object_symbols): Don't create .tcommon + section for relocatable link. + 2006-06-21 Alan Modra * elf-bfd.h (struct elf_backend_data): Add diff --git a/bfd/elflink.c b/bfd/elflink.c index 0a32963368..4b20749e11 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"); -- 2.11.0