* archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
authorDJ Delorie <dj@redhat.com>
Tue, 17 Nov 1998 03:25:29 +0000 (03:25 +0000)
committerDJ Delorie <dj@redhat.com>
Tue, 17 Nov 1998 03:25:29 +0000 (03:25 +0000)
commit020917f9d0c8a8c3e9a19fb617d6b077ff26a940
tree162c04de51b0fde0598f27f80a97f36a0cbc7126
parentd3ca9a538c9305de81734d296c5ddcca8e5fa3ed
* archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
  bfds; they have no "file" so we fake it.
* bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
* libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
  resizing the memory buffer.
* opncls.c (bfd_make_writable): New function; lets you write a
  bfd_create'd bfd to an in-memory buffer.
(bfd_make_readable): New function; lets you read back that buffer
  as if it were from bfd_openr.  Used to build generated archive
  members (winsup's ld's dlltool)
bfd/ChangeLog
bfd/opncls.c