This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Add iovec for BFD_IN_MEMORY
- From: Alan Modra <amodra at gmail dot com>
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Wed, 26 May 2010 14:03:49 +0930
- Subject: Re: Add iovec for BFD_IN_MEMORY
- References: <1FF23558-30B6-483F-8257-D3B7D1BABCDC@adacore.com>
On Tue, May 25, 2010 at 02:00:44PM +0200, Tristan Gingold wrote:
> bfd/
> 2010-05-25 Tristan Gingold <gingold@adacore.com>
>
> * bfdio.c: Declare and define _bfd_memory_iovec.
> (bfd_bread): Move code for BFD_IN_MEMORY...
> (bfd_bwrite): ... Ditto ...
> (bfd_tell): ... Ditto ...
> (bfd_flush): ... Ditto ...
> (bfd_stat): ... Ditto ...
> (bfd_seek): ... Ditto ...
> (bfd_get_size): ... Ditto ...
> (bfd_mmap): ... Ditto ...
> (memory_bread): ... to these new functions.
> (memory_bwrite): Ditto.
> (memory_btell): Ditto.
> (memory_bseek): Ditto.
> (memory_bflush): Ditto.
> (memory_bstat): Ditto.
> (memory_bmmap): Ditto.
> (memory_bclose): New function.
> * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
> * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
> * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
> (bfd_make_writable): Use _bfd_memory_iovec.
> * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
> * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
> _bfd_memory_iovec.
> (alpha_ecoff_openr_next_archived_file): Use proxy_origin
> instead of origin.
> * libbfd.h: Regenerate.
OK.
--
Alan Modra
Australia Development Lab, IBM