diff options
author | DJ Delorie <dj@delorie.com> | 2000-07-07 17:40:23 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2000-07-07 17:40:23 +0000 |
commit | 71637298f2e63e4c38868369170b83f514ba3de6 (patch) | |
tree | 45f9b8de9ffa07b1fc04c02789a0820fd772049d /bfd/archive.c | |
parent | eb03f60d494c5c3fee349da9590eecd72cfb08f8 (diff) | |
download | binutils-redhat-71637298f2e63e4c38868369170b83f514ba3de6.tar.gz |
* archive.c (_bfd_write_archive_contents): Add an informative
comment.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r-- | bfd/archive.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index 6fe5997b7a..0297c2958e 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -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); |