This is the mail archive of the
mailing list for the binutils project.
Re: bfd_mmap for archive members
On Nov 19, 2009, at 5:40 AM, John Reiser wrote:
>> It depends on the purpose for which dwarf2read.c does the alignment, and
>> what it expects of the mapped address. ...
> Also, the alignment of an archive member within the containing archive file
> easily can be less than desired for direct processor access. Thus the image
> of an archive member under mmap() may require the use of memcpy (etc.) to
> achieve alignment in order to use its structs, even though a free-standing
> file would not. See this message:
> Re: bfd_mmap for archive members
Of course in the cases of Darwin flat binaries, the alignment is correct.