aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-10-24 18:45:38 +0000
committerDaniel Jacobowitz <drow@false.org>2004-10-24 18:45:38 +0000
commited0403211c2f8f10191898b627cb29e65c612942 (patch)
tree1ee9f8f14b112a62b698baf568792806a48323db /bfd
parentf9461bdb4e6e1a16f364911d70cf5247872b5977 (diff)
downloadgdb-ed0403211c2f8f10191898b627cb29e65c612942.zip
gdb-ed0403211c2f8f10191898b627cb29e65c612942.tar.gz
gdb-ed0403211c2f8f10191898b627cb29e65c612942.tar.bz2
* opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/opncls.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9fa8fdd..b17e30f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-24 Daniel Jacobowitz <dan@debian.org>
+
+ * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
+
2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
* mmo.c (File Layout): Correct place of misplaced blurb about
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 627364c..501c568 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -598,7 +598,7 @@ bfd_close (bfd *abfd)
if (!(abfd->flags & BFD_IN_MEMORY))
ret = abfd->iovec->bclose (abfd);
else
- ret = 0;
+ ret = TRUE;
/* If the file was open for writing and is now executable,
make it so. */