This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
check_directives
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Tue, 30 Sep 2008 14:19:14 +0930
- Subject: check_directives
Applied. I've also committed Nick's gas/dw2gencfi.c fix so that sparc
targets build.
* elflink.c (elf_link_add_object_symbols): Don't ignore returned
value of check_directives.
Index: bfd/elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.311
diff -u -p -r1.311 elflink.c
--- bfd/elflink.c 28 Sep 2008 13:30:35 -0000 1.311
+++ bfd/elflink.c 30 Sep 2008 02:40:38 -0000
@@ -4671,8 +4671,9 @@ elf_link_add_object_symbols (bfd *abfd,
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
--
Alan Modra
Australia Development Lab, IBM