]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf64-s390.c
Add --no-dynamic-linker option to ld, for static PIE use
[thirdparty/binutils-gdb.git] / bfd / elf64-s390.c
index 0264236f2a5ae7a075bc66b77323858f5db03b3e..1c3769976e65b20b84bf1bf454f66ba0057de32a 100644 (file)
@@ -1989,7 +1989,7 @@ elf_s390_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
   if (htab->elf.dynamic_sections_created)
     {
       /* Set the contents of the .interp section to the interpreter.  */
-      if (bfd_link_executable (info))
+      if (bfd_link_executable (info) && !info->nointerp)
        {
          s = bfd_get_linker_section (dynobj, ".interp");
          if (s == NULL)