Add bfd_link_pde, and simplify some tests of link_info.type
[deliverable/binutils-gdb.git] / bfd / elf32-sh.c
index 012ee4e6e9fd833802327d50bcdd8d44a239caba..7b8d7636de5fe4ce169eacbeb876ab7d741df798 100644 (file)
@@ -5440,7 +5440,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 
            check_segment[0] = check_segment[1] = -1;
 
-           if (! bfd_link_pic (info) || bfd_link_pie (info))
+           if (!bfd_link_dll (info))
              {
                relocation = tpoff (info, relocation);
                addend = rel->r_addend;
@@ -6542,7 +6542,7 @@ sh_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
          break;
 
        case R_SH_TLS_LE_32:
-         if (bfd_link_pic (info) && !bfd_link_pie (info))
+         if (bfd_link_dll (info))
            {
              (*_bfd_error_handler)
                (_("%B: TLS local exec code cannot be linked into shared objects"),
This page took 0.025595 seconds and 4 git commands to generate.