bfd_mmap for archive members

Tristan Gingold gingold@adacore.com
Thu Nov 19 08:58:00 GMT 2009


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
>    http://sourceware.org/ml/binutils/2009-08/msg00390.html

Of course in the cases of Darwin flat binaries, the alignment is correct.



More information about the Binutils mailing list