]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-lm32.c
Add --no-dynamic-linker option to ld, for static PIE use
[thirdparty/binutils-gdb.git] / bfd / elf32-lm32.c
index 23f6e5ea756c64ee5a4cbb4cc9fc78ac2a08f56d..0805e3c9a5f48feaa40bbda1af8a91ecbf82171b 100644 (file)
@@ -2141,7 +2141,7 @@ lm32_elf_size_dynamic_sections (bfd *output_bfd,
   if (htab->root.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");
          BFD_ASSERT (s != NULL);