(sh_elf_check_relocs): Likewise.
+2011-06-22  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.
+       (sh_elf_check_relocs): Likewise.
+
 2011-06-22  Richard Henderson  <rth@redhat.com>
 
        * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
 
 
            check_segment[0] = check_segment[1] = -1;
 
-           if (! info->shared)
+           if (! info->shared || info->pie)
              {
                relocation = tpoff (info, relocation);
                addend = rel->r_addend;
          break;
 
        case R_SH_TLS_LE_32:
-         if (info->shared)
+         if (info->shared && !info->pie)
            {
              (*_bfd_error_handler)
                (_("%B: TLS local exec code cannot be linked into shared objects"),