From e2eb67d9cbebb6a2280daa9e0e25f8eda1f456b3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 21 Sep 2000 14:21:24 +0000 Subject: [PATCH] Silence gcc warning. --- ld/ChangeLog | 4 ++++ ld/ldwrite.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index c6fef18..3fcc5f3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2000-09-21 Alan Modra + + * ldwrite.c (clone_section): Silence gcc warnings. + 2000-09-20 Alan Modra * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle diff --git a/ld/ldwrite.c b/ld/ldwrite.c index 233f238..589b910 100644 --- a/ld/ldwrite.c +++ b/ld/ldwrite.c @@ -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; -- 2.7.4