aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-07-06 02:33:08 +0000
committerJohn Gilmore <gnu@cygnus>1991-07-06 02:33:08 +0000
commitca18a446bc0f1f97f3e5eb0921b13ebbdecbb333 (patch)
treeed61ff768fd0715a8de6358e38bc890a422deda9 /bfd/archive.c
parent6988f5c0ae12e1e978129c89d5633929ebd13c41 (diff)
downloadgdb-ca18a446bc0f1f97f3e5eb0921b13ebbdecbb333.zip
gdb-ca18a446bc0f1f97f3e5eb0921b13ebbdecbb333.tar.gz
gdb-ca18a446bc0f1f97f3e5eb0921b13ebbdecbb333.tar.bz2
Add comment about commented-out bfd_release calls.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index fd7fc3c..2f91901 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -594,8 +594,11 @@ bfd_slurp_coff_armap (abfd)
/* Pad to an even boundary if you have to */
ardata->first_file_filepos += (ardata->first_file_filepos) %2;
-/* bfd_release (abfd, (PTR)raw_armap);
- bfd_release (abfd, (PTR)mapdata);*/
+ /* We'd like to release these allocations, but we have allocated stuff
+ since then (using the same obstack, if bfd_release is obstack based).
+ So they will stick around until the bfd is closed. */
+ /* bfd_release (abfd, (PTR)raw_armap);
+ bfd_release (abfd, (PTR)mapdata); */
bfd_has_map (abfd) = true;
return true;
}