Silence gcc warning.
authorAlan Modra <amodra@gmail.com>
Thu, 21 Sep 2000 14:21:24 +0000 (14:21 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 21 Sep 2000 14:21:24 +0000 (14:21 +0000)
ld/ChangeLog
ld/ldwrite.c

index c6fef1830c3a25307242a852753624ca3b0e44ad..3fcc5f37a1d9eaad5ccb605db49f868616ae76b8 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-21  Alan Modra  <alan@linuxcare.com.au>
+
+       * ldwrite.c (clone_section): Silence gcc warnings.
+
 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
 
        * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
index 233f2388eb74bfea726d659145007fb526da9cc0..589b91012ca8393e685f1ba00346831d0eef06fe 100644 (file)
@@ -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;