* elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
[deliverable/binutils-gdb.git] / bfd / elf32-sh.c
index 9bc2dd5a7949ec92cab4acd4843849749a857bb9..87d4e4fcbc5e3370c8345fca278169674012b201 100644 (file)
@@ -3104,6 +3104,9 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
              && (got_type == GOT_NORMAL || got_type == GOT_FUNCDESC))
            htab->srofixup->size += 4;
        }
+      /* No dynamic relocations required when IE->LE conversion happens.  */
+      else if (got_type == GOT_TLS_IE && !h->def_dynamic && !info->shared)
+       ;
       /* R_SH_TLS_IE_32 needs one dynamic relocation if dynamic,
         R_SH_TLS_GD needs one if local symbol and two if global.  */
       else if ((got_type == GOT_TLS_GD && h->dynindx == -1)
This page took 0.037766 seconds and 4 git commands to generate.