COFF: Don't oversize COMMON symbols when targeting BFD ld
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 8 Oct 2014 06:38:53 +0000 (06:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 8 Oct 2014 06:38:53 +0000 (06:38 +0000)
commit1fa70c99dc9f357713be8a2127ac7812cee89c84
tree5187e370d7d171982d72f03fade7432dec8b9c10
parent3d371bd84bf7af139c961c7d8363776e0b322987
COFF: Don't oversize COMMON symbols when targeting BFD ld

COFF normally doesn't allow us to describe the alignment of COMMON
symbols.

It turns out that most linkers use the symbol size as a hint as to how
aligned the symbol should be.

However the BFD folks have added a .drectve command, which we
now support as of r219229, that allows us to specify the alignment
precisely.  With this in mind, stop rounding sizes up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219281 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WinCOFFStreamer.cpp
test/MC/COFF/comm-align.s