What to do about alignment of ELF objects
rafael.espindola at gmail.com
Thu Apr 23 12:12:01 PDT 2015
On 23 April 2015 at 14:17, Rui Ueyama <ruiu at google.com> wrote:
> I think the patch for LLVM looks okay, but not sure for the other one.
> Your patch makes the linker to not be able to handle archive files
> containing unaligned objects, or just makes it slower? If you cross-link an
> executable for machines generous for unaligned accesses, say x86, on
> not-so-generous machines, PowerPC for example, does it link fine?
Not difference on X86 (we avoid the copy). It makes the linker
*faster* on powerpc:
trunk: 2.165775601 seconds time elapsed ( +- 2.67% )
patch: 1.979675092 seconds time elapsed ( +- 2.96% )
The issue is that right now it leaks. Who should own the Archive in
lld when using --whole-archive?
More information about the llvm-commits