PR ld/13287
[deliverable/binutils-gdb.git] / ld / plugin.c
index 5f4aa8faa6ab59d565111ed3633e2539b74dee67..91fe48b9f27135a219598343d562b39c78e60d0d 100644 (file)
@@ -1014,3 +1014,14 @@ plugin_notice (struct bfd_link_info *info,
                                      abfd, section, value, flags, string);
   return TRUE;
 }
+
+/* Return true if bfd is a dynamic library that should be reloaded.  */
+
+bfd_boolean
+plugin_should_reload (bfd *abfd)
+{
+  return ((abfd->flags & DYNAMIC) != 0
+         && bfd_get_flavour (abfd) == bfd_target_elf_flavour
+         && bfd_get_format (abfd) == bfd_object
+         && (elf_dyn_lib_class (abfd) & DYN_AS_NEEDED) != 0);
+}
This page took 0.023444 seconds and 4 git commands to generate.