* xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
authorIan Lance Taylor <ian@airs.com>
Fri, 26 Jul 1996 21:53:08 +0000 (21:53 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 26 Jul 1996 21:53:08 +0000 (21:53 +0000)
symbol a warning rather than an error.
PR 10208.

bfd/ChangeLog
bfd/xcofflink.c

index cfa7b40606235a716b8f236de7cbf16812323429..056c5292e98a0d48a9e3b319e9aa41584701364d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 26 17:51:39 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
+       symbol a warning rather than an error.
+
 Wed Jul 24 12:02:53 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * elf.c (assign_file_positions_for_segments): Track the virtual
index 310ccf2b4fff3abc40d83f2dbf98832a2e95ef9e..9a52a9c045746025712e9756171b48a0d73d2a6a 100644 (file)
@@ -3503,11 +3503,10 @@ xcoff_build_ldsyms (h, p)
       else
        {
          (*_bfd_error_handler)
-           ("attempt to export undefined symbol `%s'",
+           ("warning: attempt to export undefined symbol `%s'",
             h->root.root.string);
-         ldinfo->failed = true;
-         bfd_set_error (bfd_error_invalid_operation);
-         return false;
+         h->ldsym = NULL;
+         return true;
        }
     }