This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bfd_mmap for archive members
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
http://sourceware.org/ml/binutils/2009-08/msg00390.html
--