This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ldwrite.c warning fix
- To: binutils at sourceware dot cygnus dot com
- Subject: ldwrite.c warning fix
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 22 Sep 2000 01:21:34 +1100 (EST)
Committed.
ld/ChangeLog
* ldwrite.c (clone_section): Silence gcc warnings.
Alan Modra
--
Linuxcare. Support for the Revolution.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
Index: ldwrite.c
===================================================================
RCS file: /cvs/src/src/ld/ldwrite.c,v
retrieving revision 1.4
diff -u -p -r1.4 ldwrite.c
--- ldwrite.c 2000/09/20 04:20:26 1.4
+++ ldwrite.c 2000/09/21 14:15:43
@@ -319,7 +319,11 @@ clone_section (abfd, s, name, count)
|| (n = bfd_make_section_anyway (abfd, sname)) == NULL
|| (h = bfd_link_hash_lookup (link_info.hash,
sname, true, true, false)) == NULL)
- einfo (_("%F%P: clone section failed: %E\n"));
+ {
+ einfo (_("%F%P: clone section failed: %E\n"));
+ /* Silence gcc warnings. einfo exits, so we never reach here. */
+ return NULL;
+ }
/* Set up section symbol. */
h->type = bfd_link_hash_defined;