* elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type.
[deliverable/binutils-gdb.git] / ld / ldlang.c
index ba14c63a1f98f57f3ed8f4b28cb3c2b08fa025c0..c26082910026e2eb115aa71efcf3a63a6646a6e9 100644 (file)
@@ -1218,7 +1218,7 @@ lang_add_section (ptr, section, output, file)
        }
 
       /* For now make .tbss normal section.  */
-      if (flags & SEC_THREAD_LOCAL)
+      if ((flags & SEC_THREAD_LOCAL) && ! link_info.relocateable)
        flags |= SEC_LOAD;
 
       section->output_section->flags |= flags;
@@ -3055,7 +3055,8 @@ lang_size_sections_1 (s, output_section_statement, prev, fill, dot, relax)
            if (bfd_is_abs_section (os->bfd_section))
              ASSERT (after == os->bfd_section->vma);
            else if ((os->bfd_section->flags & SEC_HAS_CONTENTS) == 0
-                    && (os->bfd_section->flags & SEC_THREAD_LOCAL))
+                    && (os->bfd_section->flags & SEC_THREAD_LOCAL)
+                    && ! link_info.relocateable)
              os->bfd_section->_raw_size = 0;
            else
              os->bfd_section->_raw_size =
This page took 0.024868 seconds and 4 git commands to generate.