aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-07-07 17:40:23 +0000
committerDJ Delorie <dj@redhat.com>2000-07-07 17:40:23 +0000
commit8000a61811b6463a514ce66e62e678398ffb3868 (patch)
treebbd151352166fa157f9c2b5c03be61f8f9a26e55 /bfd
parent582e0a90f00d387f343eff8b975154b607604b22 (diff)
downloadgdb-8000a61811b6463a514ce66e62e678398ffb3868.zip
gdb-8000a61811b6463a514ce66e62e678398ffb3868.tar.gz
gdb-8000a61811b6463a514ce66e62e678398ffb3868.tar.bz2
* archive.c (_bfd_write_archive_contents): Add an informative
comment.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/archive.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1bb9e57..8b826ac 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/archive.c b/bfd/archive.c
index 6fe5997..0297c29 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);