]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elflink.c
* elf32-h8300 (h8_relax_section): Add new relaxation of mov
[thirdparty/binutils-gdb.git] / bfd / elflink.c
index 6ccf625882f39d3baa90778dd01d4bc5f85e5e46..fa805bce213b36d1a4b7577bace5ea23401bc50e 100644 (file)
@@ -4498,6 +4498,7 @@ error_free_dyn:
                 --no-add-needed is used and the reference was not
                 a weak one.  */
              if (undef_bfd != NULL
+                 && h->ref_regular_nonweak
                  && (elf_dyn_lib_class (abfd) & DYN_NO_NEEDED) != 0)
                {
                  (*_bfd_error_handler)