2010-06-08 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Tue, 8 Jun 2010 14:04:25 +0000 (14:04 +0000)
committerTristan Gingold <gingold@adacore.com>
Tue, 8 Jun 2010 14:04:25 +0000 (14:04 +0000)
* vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
for the first block.

bfd/ChangeLog
bfd/vms-lib.c

index 485f4da..b979b93 100644 (file)
@@ -1,5 +1,10 @@
 2010-06-08  Tristan Gingold  <gingold@adacore.com>
 
+       * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
+       for the first block.
+
+2010-06-08  Tristan Gingold  <gingold@adacore.com>
+
        * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
        * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
        * libbfd.h: Regenerate.
index c959df9..13a4fa8 100644 (file)
@@ -2111,6 +2111,7 @@ _bfd_vms_lib_write_archive_contents (bfd *arch)
           /* Write the first block (which contains an mhd).  */
           if (bfd_bwrite (blk, VMS_BLOCK_SIZE, arch) != VMS_BLOCK_SIZE)
             goto input_err;
+          off += VMS_BLOCK_SIZE;
 
           if (amt == VMS_BLOCK_SIZE - sz)
             {