From: Alan Modra Date: Tue, 30 Sep 2008 04:47:50 +0000 (+0000) Subject: * elflink.c (elf_link_add_object_symbols): Don't ignore returned X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33177bb15400289f41986eee3e0defd8c7c12658;p=binutils-gdb.git * elflink.c (elf_link_add_object_symbols): Don't ignore returned value of check_directives. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c0a81a4c8ad..49bf2e303ca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-09-30 Alan Modra + + * elflink.c (elf_link_add_object_symbols): Don't ignore returned + value of check_directives. + 2008-09-29 Peter O'Gorman Steve Ellcey diff --git a/bfd/elflink.c b/bfd/elflink.c index 1c7f79a0c20..8e59383aae6 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -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