[lld] r251526 - [ELF2] R_X86_64_COPY relocation implemented

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 14:07:23 PST 2015


On Mon, Nov 02, 2015 at 01:22:43PM -0800, Rui Ueyama wrote:
> > max((S.size >= 16 ? 16 : 1), min(sect.align, 1 << fls(S.offset)))
> >
> > where S.size is the symbol size, S.offset is relative to the start of
> > the section in the source file and sect.align the alignment attribute.
> 
> 
> Can a result of this computation be greater than 16 for data exported from
> a DSO in reality?

I think so. Consider a class with static AVX vectors as members. Inline
functions accessing them can easily result in such copy relocations.

Joerg


More information about the llvm-commits mailing list