]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* archive.c (_bfd_write_archive_contents): Add an informative
authorDJ Delorie <dj@redhat.com>
Fri, 7 Jul 2000 17:40:23 +0000 (17:40 +0000)
committerDJ Delorie <dj@redhat.com>
Fri, 7 Jul 2000 17:40:23 +0000 (17:40 +0000)
comment.

bfd/ChangeLog
bfd/archive.c

index 1bb9e574f1ac952c29f28bedbecd8786afa0366b..8b826aceae629cca293056cb0ab48ac0247b9e5b 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-07  DJ Delorie  <dj@redhat.com>
+
+       * archive.c (_bfd_write_archive_contents): Add an informative
+       comment.
+
 2000-07-06  Kazu Hirata  <kazu@hxi.com>
 
        * srec.c: Fix formatting.
index 6fe5997b7abb5dd2feaba7a706a01a31b476fb91..0297c2958eef77c7ae89cbacd4b7697a0a46ef2e 100644 (file)
@@ -1684,6 +1684,11 @@ _bfd_write_archive_contents (arch)
      then construct a fresh ar_hdr for them.  */
   for (current = arch->archive_head; current; current = current->next)
     {
+      /* This check is checking the bfds for the objects we're reading
+        from (which are usually either an object file or archive on
+        disk), not the archive entries we're writing to.  We don't
+        actually create bfds for the archive members, we just copy
+        them byte-wise when we write out the archive.  */
       if (bfd_write_p (current))
        {
          bfd_set_error (bfd_error_invalid_operation);