summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-09-30 04:47:50 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-09-30 04:47:50 +0000
commit0f744c2872a190e50e32b428e7d58d9892705b44 (patch)
treeb77142289e6b98568ebf6245f4a5e5518695ee58 /bfd
parentaebfc1dcf18c67f2cf805b49851672af545d3ccc (diff)
downloadbinutils-redhat-0f744c2872a190e50e32b428e7d58d9892705b44.tar.gz
* elflink.c (elf_link_add_object_symbols): Don't ignore returned
value of check_directives.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c0a81a4c8a..49bf2e303c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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>
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 1c7f79a0c2..8e59383aae 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