diff options
author | Alan Modra <amodra@gmail.com> | 2008-09-30 04:47:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-09-30 04:47:50 +0000 |
commit | 33177bb15400289f41986eee3e0defd8c7c12658 (patch) | |
tree | 3e1fa0f50af72b9f1e91b2e7edce7cffb5200886 /bfd/elflink.c | |
parent | c0cf08ad1bcfa8d6bdd2ac24dd71fd1f1e72276f (diff) | |
download | gdb-33177bb15400289f41986eee3e0defd8c7c12658.zip gdb-33177bb15400289f41986eee3e0defd8c7c12658.tar.gz gdb-33177bb15400289f41986eee3e0defd8c7c12658.tar.bz2 |
* elflink.c (elf_link_add_object_symbols): Don't ignore returned
value of check_directives.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 1c7f79a..8e59383 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 |