Properly handle R_386_TLS_LDO_32 for PIE.
[deliverable/binutils-gdb.git] / bfd / elf32-i386.c
index 693c8e89d2ee67ab985e05c57628533bdaa95241..1b76cb4a4540578d19092c50e61a72d328459fce 100644 (file)
@@ -4025,7 +4025,7 @@ elf_i386_relocate_section (bfd *output_bfd,
          break;
 
        case R_386_TLS_LDO_32:
-         if (info->shared || (input_section->flags & SEC_CODE) == 0)
+         if (!info->executable || (input_section->flags & SEC_CODE) == 0)
            relocation -= elf_i386_dtpoff_base (info);
          else
            /* When converting LDO to LE, we must negate.  */
This page took 0.024223 seconds and 4 git commands to generate.