[LTO] An interesting case which shows up how we handle common symbols.
authorDavide Italiano <davide@freebsd.org>
Thu, 21 Apr 2016 17:11:39 +0000 (17:11 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 21 Apr 2016 17:11:39 +0000 (17:11 +0000)
commit58f02d0644a924d594045e0cfcaa4bfd40d620aa
treef0c76c70ea40135a52f9a4b0a1dd8f9d5d14001b
parentac55090e96787a31bfdb9ffa1fb8d0760f666db7
[LTO] An interesting case which shows up how we handle common symbols.

The gold plugin logic for common symbols is a little bit convoluted
as the plugin API has not an explicit way to update the alignment.
In gold, then, we need to keep the bitcode symbol @a around because
that's the only way to get the alignment right in the final object.

In lld, this is not true. We already have all the informations we
need about common symbols (size/alignment) so we don't have to
keep the existing symbol and pass it to the mover.

llvm-svn: 267007
lld/test/ELF/lto/common2.ll [new file with mode: 0644]