* elflink.c (elf_link_add_object_symbols): Don't ignore returned
authorAlan Modra <amodra@gmail.com>
Tue, 30 Sep 2008 04:47:50 +0000 (04:47 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 30 Sep 2008 04:47:50 +0000 (04:47 +0000)
value of check_directives.

bfd/ChangeLog
bfd/elflink.c

index c0a81a4c8ad23d82484c21ee32a9a098e78e4f7c..49bf2e303ca91dae2a4b426b9fe883e8bf789e0c 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (elf_link_add_object_symbols): Don't ignore returned
+       value of check_directives.
+
 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
            Steve Ellcey  <sje@cup.hp.com>
 
index 1c7f79a0c202588425e1c50072fc59b96a0321ee..8e59383aae60c3b0446031af6a5b7bc7a7ce6152 100644 (file)
@@ -4671,8 +4671,9 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
       free (sorted_sym_hash);
     }
 
-  if (bed->check_directives)
-    (*bed->check_directives) (abfd, info);
+  if (bed->check_directives
+      && !(*bed->check_directives) (abfd, info))
+    return FALSE;
 
   /* If this object is the same format as the output object, and it is
      not a shared library, then let the backend look through the