This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold incremental file format on 64-bit
From: Cary Coutant <ccoutant@google.com>
Date: Fri, 20 Apr 2012 15:52:21 -0700
> Is there anything else that's unaligned?
Yes, some of the other sections can end up with an unaligned ending if
there is an odd number of entries because the individual objects are a
multiple of 4 bytes in size, but not a multiple of 8.
> That said, the only unaligned pieces are the 64-bit values in the
> address area, right? The only way to align that would be to extend the
> third field from 32 bits to 64 bits. I think those pieces should
> always be 4-byte aligned as is, though, so maybe it would be better to
> have a version of Swap_unaligned that can handle 8-byte reads and
> writes to 4-byte-aligned addresses. That should be considerably faster
> than the pure unaligned version you're using now.
Makes sense.